eggcrypt 1.0.2__tar.gz → 1.1.0__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: 1.0.2
3
+ Version: 1.1.0
4
4
  Summary: A pretty secure (yet inneficient) encryption program.
5
5
  Author: Egglord
6
6
  License: MIT
@@ -22,6 +22,8 @@ eggcrypt.encrypt("") # Returns an encrypted string.
22
22
 
23
23
  eggcrypt.decrypt("") # Returns a non-encrypted string.
24
24
 
25
+ eggcrypt.key() # Returns a random key/seed.
26
+
25
27
  # !NB!
26
28
 
27
29
  Use: pip install eggcrypt
@@ -10,6 +10,8 @@ eggcrypt.encrypt("") # Returns an encrypted string.
10
10
 
11
11
  eggcrypt.decrypt("") # Returns a non-encrypted string.
12
12
 
13
+ eggcrypt.key() # Returns a random key/seed.
14
+
13
15
  # !NB!
14
16
 
15
17
  Use: pip install eggcrypt
@@ -0,0 +1 @@
1
+ from .egg import encrypt, decrypt
@@ -37,3 +37,12 @@ def decrypt(txt, rep=0):
37
37
  final+=chr(int(temp))
38
38
  temp=""
39
39
  return final
40
+ def key():
41
+ import time
42
+ seed=1
43
+ for i in range(int(time.time()*10000)%100):
44
+ a=str(time.time()*10000)
45
+ a=a[0:10]
46
+ a=int(a)
47
+ seed=int(seed*a+(round(seed^a)))
48
+ return seed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eggcrypt
3
- Version: 1.0.2
3
+ Version: 1.1.0
4
4
  Summary: A pretty secure (yet inneficient) encryption program.
5
5
  Author: Egglord
6
6
  License: MIT
@@ -22,6 +22,8 @@ eggcrypt.encrypt("") # Returns an encrypted string.
22
22
 
23
23
  eggcrypt.decrypt("") # Returns a non-encrypted string.
24
24
 
25
+ eggcrypt.key() # Returns a random key/seed.
26
+
25
27
  # !NB!
26
28
 
27
29
  Use: pip install eggcrypt
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "eggcrypt"
7
- version = "1.0.2"
7
+ version = "1.1.0"
8
8
  description = "A pretty secure (yet inneficient) encryption program."
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="1.0.2",
5
+ version="1.1.0",
6
6
  packages=find_packages(),
7
7
  description="A pretty secure (yet inneficient) encryption program.",
8
8
  author="",
@@ -1 +0,0 @@
1
- from .egg import encode, decode
File without changes
File without changes