๐ฐ Fortress
A cryptographically secure password generator with entropy estimation.
Fortress uses Python's
secrets module to generate passwords that are suitable for security-sensitive applications. It includes entropy calculation, strength estimation, and a beautiful CLI.
โจ Features
Feature Description ๐ Cryptographically Secure Uses
secrets module, not random ๐ Entropy Calculation Know exactly how strong your password is โฑ๏ธ Crack Time Estimation See how long it would take to crack ๐จ Beautiful CLI Rich terminal output with colors and progress ๐ฆ Zero Dependencies Core library has no dependencies ๐ง Configurable Customize character sets, length, and more ๐งช Well Tested 80%+ test coverage with pytest๐ Installation
๐ Usage
Command Line
Python Library
๐ Project Structure
๐๏ธ Architecture
Core Module: Pure Python, no dependencies, cryptographically secure
CLI Module: Optional, uses Typer and Rich for beautiful output
Utils Module: Display helpers with graceful fallback
๐ Security
Fortress uses
secrets.choice() instead of random.choice(). The secrets module is specifically designed for generating cryptographically strong random numbers suitable for managing secrets such as passwords.From the Python docs:
The
secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.๐งช Development
๐ Password Strength Guide
Entropy (bits) Strength Crack Time* < 28 Very Weak Instantly 28-35 Weak Minutes 36-59 Fair Hours to days 60-127 Strong Years โฅ 128 Very Strong Centuries
*Assuming 10 billion attempts/second
๐ License
๐ค Author
Hatim El Hassak โ Full-Stack Engineer
0 likes ยท 14 views ยท Feb 13, 2026
Developed a secure password generator using Python's secrets module.