eggcrypt 3.1.0__tar.gz → 3.1.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eggcrypt
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: A pretty secure (yet inneficient) encryption program. Has key(), hash(), encrypt() and decrypt().
5
5
  Author: Egglord
6
6
  License: MIT
@@ -109,8 +109,9 @@ def encrypt(txt,key):
109
109
  txt=diffuse2(txt)
110
110
  final_perm =make_perm(len(txt), roundkey(key,999))
111
111
  txt=permute(txt,final_perm)
112
- return txt
112
+ return txt.encode("utf-8").hex()
113
113
  def decrypt(txt,key):
114
+ txt=bytes.fromhex(txt).decode("utf-8")
114
115
  final_perm=make_perm(len(txt),roundkey(key,999))
115
116
  txt=permute(txt,inverse_perm(final_perm))
116
117
  txt=undiffuse2(txt)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eggcrypt
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: A pretty secure (yet inneficient) encryption program. Has key(), hash(), encrypt() and decrypt().
5
5
  Author: Egglord
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "eggcrypt"
7
- version = "3.1.0"
7
+ version = "3.1.1"
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"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="egg",
5
- version="3.1.0",
5
+ version="3.1.1",
6
6
  packages=find_packages(),
7
7
  description="A pretty secure (yet inneficient) encryption program.",
8
8
  author="Egglord",
File without changes
File without changes
File without changes
File without changes