passphera-core 0.3.2__py3-none-any.whl → 0.3.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- passphera_core/__init__.py +2 -2
- passphera_core/generator.py +3 -4
- {passphera_core-0.3.2.dist-info → passphera_core-0.3.4.dist-info}/METADATA +1 -1
- passphera_core-0.3.4.dist-info/RECORD +7 -0
- passphera_core-0.3.2.dist-info/RECORD +0 -7
- {passphera_core-0.3.2.dist-info → passphera_core-0.3.4.dist-info}/WHEEL +0 -0
- {passphera_core-0.3.2.dist-info → passphera_core-0.3.4.dist-info}/top_level.txt +0 -0
passphera_core/__init__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
from .generator import PasswordGenerator
|
2
|
-
from .exceptions import InvalidAlgorithmException
|
1
|
+
from .generator import PasswordGenerator
|
2
|
+
from .exceptions import InvalidAlgorithmException
|
passphera_core/generator.py
CHANGED
@@ -219,13 +219,12 @@ class PasswordGenerator:
|
|
219
219
|
"""
|
220
220
|
old_algorithm = self._algorithm_name
|
221
221
|
self._algorithm_name = 'affine'
|
222
|
-
self._update_algorithm_properties()
|
223
222
|
self._password = self.generate_raw_password()
|
224
223
|
self._algorithm_name = old_algorithm
|
225
|
-
self.
|
226
|
-
for char, replacement in self._chars_replacements.items():
|
227
|
-
self._password = self._password.replace(char, replacement)
|
224
|
+
self._password = self.generate_raw_password()
|
228
225
|
for char in self._password:
|
229
226
|
if char in self._text:
|
230
227
|
self._password = self._password.replace(char, char.upper())
|
228
|
+
for char, replacement in self._chars_replacements.items():
|
229
|
+
self._password = self._password.replace(char, replacement)
|
231
230
|
return self._password
|
@@ -0,0 +1,7 @@
|
|
1
|
+
passphera_core/__init__.py,sha256=zDJS1wcjyfEwO4YifFwghhWE3fM2pZNqodx8B4PkGDA,91
|
2
|
+
passphera_core/exceptions.py,sha256=M0wVUORrukx2wIkHAz42Sz4BMMY8JssZp7iuHaEjARc,155
|
3
|
+
passphera_core/generator.py,sha256=9Iz9ZCwYk4T0syefhErwWN5TentL2KGR_y7FjwB1l-A,7821
|
4
|
+
passphera_core-0.3.4.dist-info/METADATA,sha256=5GV9eRooBYFEtkMFrJR3mYFPenHct_eP4xJ8919D_so,627
|
5
|
+
passphera_core-0.3.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
+
passphera_core-0.3.4.dist-info/top_level.txt,sha256=aDUX2iWGOyfzyf6XakLWTbgeWqNrypMHO074Qratyds,15
|
7
|
+
passphera_core-0.3.4.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
passphera_core/__init__.py,sha256=vZR05Hph-1tzmLNdnhZanVm6jQmafz5g6USF592MFEo,141
|
2
|
-
passphera_core/exceptions.py,sha256=M0wVUORrukx2wIkHAz42Sz4BMMY8JssZp7iuHaEjARc,155
|
3
|
-
passphera_core/generator.py,sha256=pbz75NUD01ktEtGK2gCuv1B0L2z8RZHMruYukB4cg_Y,7855
|
4
|
-
passphera_core-0.3.2.dist-info/METADATA,sha256=Q1TvHghmzoFGZNEaQGNHNYrYoW7CdOkQmTfEzWZTm1M,627
|
5
|
-
passphera_core-0.3.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
passphera_core-0.3.2.dist-info/top_level.txt,sha256=aDUX2iWGOyfzyf6XakLWTbgeWqNrypMHO074Qratyds,15
|
7
|
-
passphera_core-0.3.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|