passphera-core 0.3.2__py3-none-any.whl → 0.3.4__py3-none-any.whl

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,2 +1,2 @@
1
- from .generator import PasswordGenerator as PasswordGenerator
2
- from .exceptions import InvalidAlgorithmException as InvalidAlgorithmException
1
+ from .generator import PasswordGenerator
2
+ from .exceptions import InvalidAlgorithmException
@@ -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._update_algorithm_properties()
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: passphera-core
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: The core system of passphera project
5
5
  Home-page: https://github.com/passphera/core
6
6
  Author: Fathi Abdelmalek
@@ -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,,