Cryptographically secure Password Generator
Project description
The Master of Secrets - Password Generator
A Python-based secure password generator that creates strong 20-character passwords and calculates their cryptographic strength.
Features
- Uses Python's
secretsmodule for cryptographically strong random passwords - Passwords include uppercase letters, lowercase letters, digits, and special characters
- Computes the Shannon entropy of generated passwords to measure randomness
- Estimates how long it would take to crack the password (assuming 1 billion guesses per second)
Requirements
- Python 3.9 (minimum)
- NumPy
- SciPy
Installation
Install the required dependencies:
pip install numpy scipy
Usage
Run the script:
python password_generator.py
When prompted, type "Yes" to generate a password or "No" to exit:
Greetings, The Master of Secrets is at your service!
Would you like to know a secret? (Yes/No): Yes
Example output:
Password: K9#mP$2xL@4rT&8vN!1q
Estimated crack time: 3.27e+02 years
How It Works
- Creates a 20-character password using a combination of ASCII letters, digits, and punctuation marks
- Analyzes the character distribution in the password to calculate its Shannon entropy
- Estimates the time required to crack the password based on the entropy, assuming an attacker can make 1 billion guesses per second
Note
The crack time estimation is based on the character distribution entropy of the specific generated password, not the theoretical password space. For a truly random 20-character password from the full character set, the theoretical entropy would be higher.
Author
Monish Giani (thelazybastard)
License
MIT Licence
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file master_of_secrets-0.1.0.tar.gz.
File metadata
- Download URL: master_of_secrets-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
026e68b7c91b044edc8be985d8dc840a3849762b4217943f4bfa83ce338c31fd
|
|
| MD5 |
d485869d5e9296e779051a559309e0a1
|
|
| BLAKE2b-256 |
fd46b9211ac05c37c298ed38af0666312c814b17aade7f2762fbf6be978a8fc3
|
File details
Details for the file master_of_secrets-0.1.0-py3-none-any.whl.
File metadata
- Download URL: master_of_secrets-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e36271fdb9ea011b14ef611ead3930b060c276f92d3ad3d6ce8cf9e833335bd
|
|
| MD5 |
098734b7100b3f10db54497adc246ff0
|
|
| BLAKE2b-256 |
b6aaef7483c9ec3bcea99ba65693a9ba6eb366d89f52906ee54faa61c17a0a7d
|