Metadata-Version: 2.4
Name: pw-entropy-kit
Version: 0.1.0
Summary: Zero-dependency Python password entropy analyzer, GPU crack-time estimator, and cryptographic generator.
Author: Farhan Adil
License: MIT
Project-URL: Homepage, https://passwordgiant.com
Project-URL: How Secure Is My Password, https://passwordgiant.com/how-secure-is-my-password
Project-URL: Password Generator, https://passwordgiant.com/password-generator
Project-URL: Repository, https://github.com/farhanadilumarkhan/password-entropy-kit
Keywords: password,entropy,security,cybersecurity,password-generator,shannon-entropy,audit
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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](https://passwordgiant.com)** — including **[How Secure Is My Password](https://passwordgiant.com/how-secure-is-my-password)** and the **[Random Password Generator](https://passwordgiant.com/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

```bash
pip install password-entropy-kit
```

## Quick Usage

```python
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

```bash
pw-audit "Tr0ub4dor&3"
```

## Links

- **Online Security Suite:** [PasswordGiant.com](https://passwordgiant.com)
- **Password Strength & Crack Time:** [How Secure Is My Password](https://passwordgiant.com/how-secure-is-my-password)
- **Password Generator:** [PasswordGiant Password Generator](https://passwordgiant.com/password-generator)
- **Source Code:** [GitHub](https://github.com/farhanadilumarkhan/password-entropy-kit)

## License

MIT License
