Skip to main content

Simple Python library to generate, hash, and verify secure passwords with modern crack time analysis

Project description

Downloads Downloads

passwd-generator

passwd-generator is a simple Python library to generate, hash, and verify secure passwords with modern crack time analysis.

Documentation

Install the Package with

pip install passwd-generator or install the Development Version with pip install git+

Generate a password

from passwd_generator import passwd

# available types: 'char' (letters+symbols), 'num' (numbers only), 'nchar' (all chars)
password = passwd().generate_passwd(length=12, type="nchar")

Validate a password

from passwd_generator import passwd

print(passwd().validate_passwd(password="text", min_length=4))

Example Ouput:

{
    'valid': True,
    'length': 11,
    'score': 4,
    'cracktime' 24y
    'requirements': {
        'digits': True,
        'upper': True,
        'lower': True,
        'special': True
    }
}

Hash a password/text

from passwd_generator import passwd

password_hash = passwd().hash_passwd("text")

Verify a hash

from passwd_generator import passwd

password_hash = passwd().verify_hash("new_hash", "old_hash")

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

passwd_generator-2026.1.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

passwd_generator-2026.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file passwd_generator-2026.1.1.tar.gz.

File metadata

  • Download URL: passwd_generator-2026.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for passwd_generator-2026.1.1.tar.gz
Algorithm Hash digest
SHA256 093ca79efe5422895c093de99127f32165141add1b2075b23381c1d2ffeb7a92
MD5 b3245e4e9316d124284cc8a5c4faadc3
BLAKE2b-256 a726063947487056dc521b79b01a85ce143b1a6f3d96dd36bd2deeceb00af542

See more details on using hashes here.

File details

Details for the file passwd_generator-2026.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for passwd_generator-2026.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7eda3d945fc91f7986f584b6682cd87213b4fc93b07d9423b848c64158d1a30e
MD5 96dac5d9ce11c44fc0b9179c95ead911
BLAKE2b-256 e42f17609391fa98bc709ea75e177d8c8820bdea2594b2d731b358583835dc4b

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