Strong Passwords Generator made with python.
Project description
f-passwords-generator
Strong Passwords Generator made with python.
Attributes
plain_text
(can be modified, have getter and setter): The plain text to be ciphered.key_phrase
(can be modified, have getter and setter): The key phrase to be used in the operation.characters_replacements
(cannot be modified, have only getter): Custom dictionary you can use to change characters after ciphering, default is empty.matrix
(cannot be modified, have only getter): The matrix used in the cyphering operation.
Methods
replace_character(char: str, replacement: str)
: used to add an item tocharacters_replacements
.reset_character(char: str)
: remove the character fromcharacters_replacements
if exists.generate_password(text: str = None, key: str = None)
: generate a password from theplain_text
usingkey_phrase
andcharacters_replacements
.
How to use
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator(plain_text=None, key_phrase=None)
pass_gen.plain_text = "demo text"
pass_gen.key_phrase = "demo key"
pass_gen.replace_character(char="", replacement="")
pass_gen.reset_character(char="")
password = pass_gen.generate_password(text=None, key=None)
Examples
Example 1
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator("demo code", "demo key")
password = pass_gen.generate_password()
Example 2
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator()
password = pass_gen.generate_password("demo text", "demo key")
Example 3
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator()
pass_gen.plain_text = "demo text"
pass_gen.key_phrase = "demo key"
password = pass_gen.generate_password()
License
The code in this repository is licensed under the MIT License.
You can find the full text of the license in the LICENSE file. For more information, please visit the repository on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file f-passwords-generator-1.4.0.tar.gz
.
File metadata
- Download URL: f-passwords-generator-1.4.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7e5f9ed11a385d5adbbd98302f94f78fe395a667c3171628fd0fad777fe8373 |
|
MD5 | 08e6284672ed0a2ea9bde703d53511a8 |
|
BLAKE2b-256 | 9eb7cc236ec8d4bf2d5034555cfb226dad10a08664127baa1308f905d05936be |
File details
Details for the file f_passwords_generator-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: f_passwords_generator-1.4.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 282f46fcea1dbab2e0a830c5f88a51dcfc03bf90d06bda01aff445169104f6fa |
|
MD5 | 08c4c5b09f641ef966b75ee175f2dac1 |
|
BLAKE2b-256 | 11cfdde9c7c5ba676f1587e399727e286b706f9bd6a9dc45fc3b0ad2f79aaa87 |