Skip to content

alhaannn/secure-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

🛡️ Smart Password Validator (Version 1.6)

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.


🚀 Key Features

🧠 Product-Aware Intelligence

  • 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.

🛡️ Advanced Security Logic

  • 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 1qaz or 9s8d7f.
  • Entropy Estimation: Computes a multi-factor score to ensure a minimum of 40 bits of entropy.

💬 Empathetic Feedback

  • Actionable Guidance: Replaces technical jargon with friendly, human messages such as: "Tip: try a longer passphrase or mix different character types".

🛠️ Tech Stack & Algorithms

Feature Implementation
Language Python 3.x
Patterns Regex (Regular Expressions)
Math Shannon Entropy (Log2 Pool)
Structure Embedded Trie (Prefix Tree)
Analysis Zlib Compression Library

📦 Installation & Usage

Setup

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages