Skip to main content

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")

Metadata

Release files for passwd-generator 2026.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for passwd-generator 2026.1.1
File Size Uploaded
passwd_generator-2026.1.1.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for passwd-generator 2026.1.1
File Interpreter ABI Platform
passwd_generator-2026.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / passwd_generator-2026.1.1.tar.gz

Download URL passwd_generator-2026.1.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
093ca79efe5422895c093de99127f32165141add1b2075b23381c1d2ffeb7a92
BLAKE2b-256 checksum
How to use checksums
a726063947487056dc521b79b01a85ce143b1a6f3d96dd36bd2deeceb00af542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / passwd_generator-2026.1.1-py3-none-any.whl

Download URL passwd_generator-2026.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eda3d945fc91f7986f584b6682cd87213b4fc93b07d9423b848c64158d1a30e
BLAKE2b-256 checksum
How to use checksums
e42f17609391fa98bc709ea75e177d8c8820bdea2594b2d731b358583835dc4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

2026.1.1 This release

2 release files

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page