Skip to main content

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 secrets module 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

  1. Creates a 20-character password using a combination of ASCII letters, digits, and punctuation marks
  2. Analyzes the character distribution in the password to calculate its Shannon entropy
  3. 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


Download files

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

Source Distribution

master_of_secrets-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

master_of_secrets-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

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

Hashes for master_of_secrets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 026e68b7c91b044edc8be985d8dc840a3849762b4217943f4bfa83ce338c31fd
MD5 d485869d5e9296e779051a559309e0a1
BLAKE2b-256 fd46b9211ac05c37c298ed38af0666312c814b17aade7f2762fbf6be978a8fc3

See more details on using hashes here.

File details

Details for the file master_of_secrets-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for master_of_secrets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e36271fdb9ea011b14ef611ead3930b060c276f92d3ad3d6ce8cf9e833335bd
MD5 098734b7100b3f10db54497adc246ff0
BLAKE2b-256 b6aaef7483c9ec3bcea99ba65693a9ba6eb366d89f52906ee54faa61c17a0a7d

See more details on using hashes here.

Supported by

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