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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| passwd_generator-2026.1.1.tar.gz | 6.2 kB | Without provenance | Details for passwd_generator-2026.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| passwd_generator-2026.1.1-py3-none-any.whl | Python 3 | none | any | Details for passwd_generator-2026.1.1-py3-none-any.whl |
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
|
Security for passwd-generator 2026.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.