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 How Secure Is My Password and the 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 pw-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 pw-entropy-kit 0.1.0
File Size Uploaded Provenance Actions
pw_entropy_kit-0.1.0.tar.gz 5.3 kB Without provenance Details for pw_entropy_kit-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.1 kB

Release files / pw_entropy_kit-0.1.0.tar.gz

Download URL pw_entropy_kit-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d26f441a5435f63d1d8ff526ed4673376c6389a2158ffc1abd99562c1c4495c3
BLAKE2b-256 checksum
How to use checksums
b780065e2c4367ea1c89b755465586c14c2e0d93ea5f6cb3e858843b2359ef9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

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

Security for pw-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