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 master-of-secrets

Usage

Run the script:

secure-me

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.1.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.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file master_of_secrets-0.1.1.tar.gz.

File metadata

  • Download URL: master_of_secrets-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8170f089e58693fa91b266b46f22f8ac14313bce796c887a740dc64917b9e9b3
MD5 f95fa498cb395614d71bcbbed29c5288
BLAKE2b-256 1465cabddbead96d0afe230df133f4f35fad303889f3a364bf03c84e960a5724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for master_of_secrets-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51f35562b13c2fc92691380a8c1025f6361db560574ede6704d383d71fa24b62
MD5 41f5ca887e9596fb445a70eefb18db2b
BLAKE2b-256 04bf2d22f9e0fad6d733c194ee592b2106de03ffafb72b87eb46fa15d898ed65

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