Skip to main content

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.
  • password (cannot be modified, have only getter): The generated password, when first constructed it's empty string.

Methods

  • replace_character(char: str, replacement: str): used to add an item to characters_replacements.
  • reset_character(char: str): remove the character from characters_replacements if exists.
  • generate_password(text: str = None, key: str = None): generate a password from the plain_text using key_phrase and characters_replacements.

How to use

from passwords_generator import PasswordGenerator

pass_gen = PasswordGenerator(plain_text=None, key_phrase=None)
pass_gen.generate_password(text=None, key=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.password

Examples

Example 1

from passwords_generator import PasswordGenerator

pass_gen = PasswordGenerator("demo code", "demo key")
pass_gen.generate_password()
password = pass_gen.password

Example 2

from passwords_generator import PasswordGenerator

pass_gen = PasswordGenerator()
pass_gen.generate_password("demo text", "demo key")
password = pass_gen.password

Example 3

from passwords_generator import PasswordGenerator

pass_gen = PasswordGenerator()
pass_gen.plain_text = "demo text"
pass_gen.key_phrase = "demo key"
pass_gen.generate_password()
password = pass_gen.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

f-passwords-generator-1.3.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

f_passwords_generator-1.3.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file f-passwords-generator-1.3.0.tar.gz.

File metadata

  • Download URL: f-passwords-generator-1.3.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for f-passwords-generator-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ecba382536fc28b7e790dc104def4c3bc9cef352967544431ec26663b7e60617
MD5 c46bcaeafd82d1d81d5123b050ddbca9
BLAKE2b-256 89eceb13706bc270df2dce4af3fb16878aacb2783a84204aedefa6c380312c8d

See more details on using hashes here.

File details

Details for the file f_passwords_generator-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for f_passwords_generator-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13fc852d34e3bf3c08fd4801f044ed454d12a0e5c33bd4e86391314e84df4595
MD5 96249c6d3d1b1749cc3945a76982b031
BLAKE2b-256 ad729259385c224f52f0fe234fe5aef6bbba8b0e4ad9df4c9b374ed5e761755b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page