passphera-core 0.7.0__tar.gz → 0.8.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {passphera-core-0.7.0 → passphera-core-0.8.1}/PKG-INFO +4 -2
- {passphera-core-0.7.0 → passphera-core-0.8.1}/passphera_core/generator.py +6 -2
- {passphera-core-0.7.0 → passphera-core-0.8.1}/passphera_core.egg-info/PKG-INFO +4 -2
- {passphera-core-0.7.0 → passphera-core-0.8.1}/passphera_core.egg-info/SOURCES.txt +1 -0
- passphera-core-0.8.1/passphera_core.egg-info/requires.txt +1 -0
- {passphera-core-0.7.0 → passphera-core-0.8.1}/setup.py +4 -2
- {passphera-core-0.7.0 → passphera-core-0.8.1}/README.md +0 -0
- {passphera-core-0.7.0 → passphera-core-0.8.1}/passphera_core/__init__.py +0 -0
- {passphera-core-0.7.0 → passphera-core-0.8.1}/passphera_core/exceptions.py +0 -0
- {passphera-core-0.7.0 → passphera-core-0.8.1}/passphera_core.egg-info/dependency_links.txt +0 -0
- {passphera-core-0.7.0 → passphera-core-0.8.1}/passphera_core.egg-info/top_level.txt +0 -0
- {passphera-core-0.7.0 → passphera-core-0.8.1}/setup.cfg +0 -0
@@ -1,18 +1,20 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: passphera-core
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.8.1
|
4
4
|
Summary: The core system of passphera project
|
5
5
|
Home-page: https://github.com/passphera/core
|
6
6
|
Author: Fathi Abdelmalek
|
7
7
|
Author-email: abdelmalek.fathi.2001@gmail.com
|
8
|
-
Classifier: Development Status ::
|
8
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Classifier: Programming Language :: Python
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
13
13
|
Classifier: Topic :: Security
|
14
14
|
Classifier: Topic :: Security :: Cryptography
|
15
|
+
Requires-Python: >=3
|
15
16
|
Description-Content-Type: text/markdown
|
17
|
+
Requires-Dist: cipherspy
|
16
18
|
|
17
19
|
# passphera-core
|
18
20
|
|
@@ -13,6 +13,8 @@ class PasswordGenerator:
|
|
13
13
|
multiplier: int = 3,
|
14
14
|
key: str = "hill",
|
15
15
|
algorithm: str = 'hill',
|
16
|
+
prefix: str = 'secret',
|
17
|
+
postfix: str = 'secret',
|
16
18
|
characters_replacements: dict = None,
|
17
19
|
):
|
18
20
|
"""
|
@@ -30,6 +32,8 @@ class PasswordGenerator:
|
|
30
32
|
self._key: str = key
|
31
33
|
self._algorithm_name: str = algorithm.lower()
|
32
34
|
self._algorithm = self._set_algorithm()
|
35
|
+
self._prefix: str = prefix
|
36
|
+
self._postfix: str = postfix
|
33
37
|
self._characters_replacements: dict = characters_replacements
|
34
38
|
|
35
39
|
@property
|
@@ -127,7 +131,7 @@ class PasswordGenerator:
|
|
127
131
|
case 'caesar':
|
128
132
|
return CaesarCipher(self._shift)
|
129
133
|
case 'affine':
|
130
|
-
return AffineCipher(self.
|
134
|
+
return AffineCipher(self._shift, self._multiplier)
|
131
135
|
case 'playfair':
|
132
136
|
return PlayfairCipher(self._key)
|
133
137
|
case 'hill':
|
@@ -166,7 +170,7 @@ class PasswordGenerator:
|
|
166
170
|
:return: str: The generated raw password
|
167
171
|
"""
|
168
172
|
self._update_algorithm_properties()
|
169
|
-
return self._algorithm.encrypt(f"
|
173
|
+
return self._algorithm.encrypt(f"{self._prefix}{text}{self._postfix}")
|
170
174
|
|
171
175
|
def generate_password(self, text: str) -> str:
|
172
176
|
"""
|
@@ -1,18 +1,20 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: passphera-core
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.8.1
|
4
4
|
Summary: The core system of passphera project
|
5
5
|
Home-page: https://github.com/passphera/core
|
6
6
|
Author: Fathi Abdelmalek
|
7
7
|
Author-email: abdelmalek.fathi.2001@gmail.com
|
8
|
-
Classifier: Development Status ::
|
8
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Classifier: Programming Language :: Python
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
13
13
|
Classifier: Topic :: Security
|
14
14
|
Classifier: Topic :: Security :: Cryptography
|
15
|
+
Requires-Python: >=3
|
15
16
|
Description-Content-Type: text/markdown
|
17
|
+
Requires-Dist: cipherspy
|
16
18
|
|
17
19
|
# passphera-core
|
18
20
|
|
@@ -0,0 +1 @@
|
|
1
|
+
cipherspy
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
5
5
|
|
6
6
|
setup(
|
7
7
|
name='passphera-core',
|
8
|
-
version='0.
|
8
|
+
version='0.8.1',
|
9
9
|
author='Fathi Abdelmalek',
|
10
10
|
author_email='abdelmalek.fathi.2001@gmail.com',
|
11
11
|
url='https://github.com/passphera/core',
|
@@ -13,8 +13,10 @@ setup(
|
|
13
13
|
long_description=long_description,
|
14
14
|
long_description_content_type="text/markdown",
|
15
15
|
packages=['passphera_core'],
|
16
|
+
python_requires='>=3',
|
17
|
+
install_requires=['cipherspy'],
|
16
18
|
classifiers=[
|
17
|
-
"Development Status ::
|
19
|
+
"Development Status :: 2 - Pre-Alpha",
|
18
20
|
"License :: OSI Approved :: MIT License",
|
19
21
|
"Operating System :: OS Independent",
|
20
22
|
"Programming Language :: Python",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|