Skip to main content

Strong Passwords Generator made with python.

Project description

f-passwords-generator

Strong Passwords Generator made with python.

Attributes

  • text (can be modified, have getter and setter): The plain text to be ciphered.
  • key (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 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 text using key and characters_replacements.

How to use

from passwords_generator import PasswordGenerator

pass_gen = PasswordGenerator(_text=None, _key=None)
pass_gen.text = "demo text"
pass_gen.key = "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.text = "demo text"
pass_gen.key = "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


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.5.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: f-passwords-generator-1.5.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

Hashes for f-passwords-generator-1.5.0.tar.gz
Algorithm Hash digest
SHA256 aeeac6ada44a7ab56d745d3d11920a4fffdab6cd22b3cb93981807624b6e6627
MD5 1e1b6fd7cf27928e7ad3f1565c046c21
BLAKE2b-256 b0306f6ab505c8671f395e637ed8f4872523725521435c468becfc0359d507e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for f_passwords_generator-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3bb1efd95c5531e530320ba7066817b6a4ae9eb6cab9885122d726b8c3aa440
MD5 c4da72d04374ff7ca698e176e761bc1e
BLAKE2b-256 ecce16f42b00b2f14d7bdec60bddbcc49be3cbe2e102df93b35322fd8deae2a1

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