A Hackathon-grade solution for Product-Aware password security.
This project was developed for the Empathy Encryption Python Hackathon to address the challenge of "interpreting ambiguous product guidance". It moves beyond rigid character rules by balancing high-security entropy with empathetic user experience, ensuring passwords are both unguessable by machines and memorable for humans.
- Human Intent Detection: Rewards structured patterns like CamelCase, word+digit combos, and multi-word phrases over random key-mashing.
- Memorability Heuristics: Features a Pronounceability Score that analyzes vowel-consonant alternation to ensure a user can recall their password.
- Visual Ambiguity Filter: Automatically flags and limits confusing characters (e.g.,
0,O,1,l) to prevent login errors.
- Zlib Compression Heuristic: Uses compression ratios to detect repetitive patterns (too compressible) and pure randomness (near-incompressible).
- QWERTY Adjacency Mapping: Calculates the Euclidean distance between keys to penalize predictable runs like
1qazor9s8d7f. - Entropy Estimation: Computes a multi-factor score to ensure a minimum of 40 bits of entropy.
- Actionable Guidance: Replaces technical jargon with friendly, human messages such as: "Tip: try a longer passphrase or mix different character types".
| Feature | Implementation |
|---|---|
| Language | Python 3.x |
| Patterns | Regex (Regular Expressions) |
| Math | Shannon Entropy (Log2 Pool) |
| Structure | Embedded Trie (Prefix Tree) |
| Analysis | Zlib Compression Library |
This project uses the Python Standard Library; there are no external dependencies to install.
git clone [https://github.com/your-username/smart-password-validator.git](https://github.com/your-username/smart-password-validator.git)
cd smart-password-validator
##Run the Validator
Test the script interactively:
python SmartPasswordValidatorVersion1-6.py
##API Implementation
from smart_password_validator import is_valid_password
# Simple boolean check
if is_valid_password("RiverWalk#42"):
print("Password is Secure & Memorable")
##🏆 Hackathon Recognition
Event: Empathy Encryption Python Hackathon.
Status: Certified Participation.
Core Philosophy: Solving for the "middle ground"—avoiding both trivial predictability and unmemorable random strings.
##👤 Author
Alhan Bellary
BCA Student (NEP)
Oracle Certified Data Science Professional
IBM Certified AI Literacy