eggcrypt 3.1.2__tar.gz → 3.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/PKG-INFO +1 -1
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/eggcrypt/egg.py +4 -3
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/eggcrypt.egg-info/PKG-INFO +1 -1
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/pyproject.toml +1 -1
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/setup.py +1 -1
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/LICENSE +0 -0
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/README.md +0 -0
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/eggcrypt/__init__.py +0 -0
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/eggcrypt.egg-info/SOURCES.txt +0 -0
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/eggcrypt.egg-info/dependency_links.txt +0 -0
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/eggcrypt.egg-info/top_level.txt +0 -0
- {eggcrypt-3.1.2 → eggcrypt-3.1.3}/setup.cfg +0 -0
|
@@ -135,15 +135,16 @@ def decrypt(txt,key):
|
|
|
135
135
|
out+=chr(inv[ord(ch)])
|
|
136
136
|
txt=xor_text(out,roundkey(key,r))
|
|
137
137
|
return txt
|
|
138
|
-
def key():
|
|
138
|
+
def key(seed):
|
|
139
139
|
import time
|
|
140
|
-
seed=
|
|
140
|
+
seed=int(str(seed).lstrip("-"))
|
|
141
141
|
for i in range(int(time.time()*10000)%100):
|
|
142
142
|
a=str(time.time()*10000)
|
|
143
143
|
a=a[0:10]
|
|
144
144
|
a=int(a)
|
|
145
145
|
seed=int(seed*a+(round(seed^a)))
|
|
146
|
-
|
|
146
|
+
|
|
147
|
+
return hash(hash2(seed))
|
|
147
148
|
def hash(inp):
|
|
148
149
|
inp=str(inp)
|
|
149
150
|
H=[0x243f6a8885a308d3,0x13198a2e03707344,0xa4093822299f31d0,0x082efa98ec4e6c89]
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "eggcrypt"
|
|
7
|
-
version = "3.1.
|
|
7
|
+
version = "3.1.3"
|
|
8
8
|
description = "A pretty secure (yet inneficient) encryption program. Has key(), hash(), encrypt() and decrypt()."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|