eggcrypt 3.1.3__tar.gz → 3.1.4__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.3 → eggcrypt-3.1.4}/PKG-INFO +1 -1
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/eggcrypt/egg.py +2 -2
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/eggcrypt.egg-info/PKG-INFO +1 -1
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/pyproject.toml +1 -1
- eggcrypt-3.1.4/setup.py +17 -0
- eggcrypt-3.1.3/setup.py +0 -10
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/LICENSE +0 -0
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/README.md +0 -0
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/eggcrypt/__init__.py +0 -0
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/eggcrypt.egg-info/SOURCES.txt +0 -0
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/eggcrypt.egg-info/dependency_links.txt +0 -0
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/eggcrypt.egg-info/top_level.txt +0 -0
- {eggcrypt-3.1.3 → eggcrypt-3.1.4}/setup.cfg +0 -0
|
@@ -112,10 +112,10 @@ def encrypt(txt,key):
|
|
|
112
112
|
txt=diffuse2(txt)
|
|
113
113
|
final_perm =make_perm(len(txt), roundkey(key,999))
|
|
114
114
|
txt=permute(txt,final_perm)
|
|
115
|
-
return txt.encode("
|
|
115
|
+
return txt.encode("latin-1").hex()
|
|
116
116
|
def decrypt(txt,key):
|
|
117
117
|
txt=replace_non_255(txt)
|
|
118
|
-
txt=bytes.fromhex(txt).decode("
|
|
118
|
+
txt=bytes.fromhex(txt).decode("latin-1")
|
|
119
119
|
final_perm=make_perm(len(txt),roundkey(key,999))
|
|
120
120
|
txt=permute(txt,inverse_perm(final_perm))
|
|
121
121
|
txt=undiffuse2(txt)
|
|
@@ -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.4"
|
|
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"
|
eggcrypt-3.1.4/setup.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
from setuptools import setup, find_packages
|
|
3
|
+
|
|
4
|
+
README = Path("README.md").read_text(encoding="utf-8")
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
name="eggcrypt",
|
|
8
|
+
version="3.1.4",
|
|
9
|
+
packages=find_packages(),
|
|
10
|
+
description="A pretty secure (yet inefficient) encryption program.",
|
|
11
|
+
long_description=README,
|
|
12
|
+
long_description_content_type="text/markdown",
|
|
13
|
+
author="Egglord",
|
|
14
|
+
license="MIT",
|
|
15
|
+
license_files=("LICENSE",),
|
|
16
|
+
python_requires=">=3.7",
|
|
17
|
+
)
|
eggcrypt-3.1.3/setup.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|