Skip to main content

password-entropy-kit

A zero-dependency Python security utility for password entropy calculation (Shannon & charset pool bits), GPU crack-time estimation, pattern auditing, and cryptographic password generation using Python's secrets module.

Prefer a visual client-side audit with zero server logging?
Test password strength, crack-time benchmarks, and breach-resistant generation directly in your browser at PasswordGiant.com — including the Password Strength Checker and Random Password Generator.

Features

  • Dual Entropy Metrics: Computes both Charset Pool Entropy ($L \times \log_2(N)$) and Shannon Information Entropy.
  • Realistic Crack-Time Modeling: Estimates brute-force resistance against a 100 billion guesses/sec multi-GPU cluster.
  • Structural Pattern Detection: Flags keyboard walks (qwerty), sequential runs, repeated characters, and common leaked substrings.
  • CSPRNG Generator: Built on Python's secrets module with guaranteed character-class diversity.
  • Built-in CLI (pw-audit): Audit any password directly from your terminal.

Installation

pip install password-entropy-kit

Quick Usage

from password_entropy_kit import audit_password, generate_password

# 1. Audit an existing password
report = audit_password("Summer2026!")
print(report["verdict"])                 # 'Weak'
print(report["pool_entropy_bits"])       # 65.7
print(report["estimated_crack_time"])    # '~1.2 years'
print(report["warnings"])                # ['Length is under 12 characters...']

# 2. Generate a high-entropy 20-character password
strong_pw = generate_password(length=20, symbols=True)
print(audit_password(strong_pw)["verdict"])  # 'Very Strong'

Command Line Interface

pw-audit "Tr0ub4dor&3"

License

MIT License

Metadata

Release files for password-entropy-kit 0.1.0

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

Source distribution (sdist)

Source distribution for password-entropy-kit 0.1.0
File Size Uploaded Provenance Actions
password_entropy_kit-0.1.0.tar.gz 5.2 kB Without provenance Details for password_entropy_kit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for password-entropy-kit 0.1.0
File Interpreter ABI Platform Actions
password_entropy_kit-0.1.0-py3-none-any.whl Python 3 none any Details for password_entropy_kit-0.1.0-py3-none-any.whl

Total release size: 11.0 kB

Release files / password_entropy_kit-0.1.0.tar.gz

Download URL password_entropy_kit-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3fe28a16ae154568bc152ed97be52a526842e742bd24b84d31d72bc892d722df
BLAKE2b-256 checksum
How to use checksums
6a868cd3a26dac9c6ab25161518b30099e9237495affbd43adee903f95fb986f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / password_entropy_kit-0.1.0-py3-none-any.whl

Download URL password_entropy_kit-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5cce2f2b168eedbb7b541e09a1a95285ba3c81229cb94ae1d347a7635931c74
BLAKE2b-256 checksum
How to use checksums
bff7f243484a0f343489bdabae16b07d979a0ce3d7ae710a417d977eee166176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for password-entropy-kit 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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