PassGuard is a lightweight password strength and exposure risk analyzer built in Go.
It evaluates password security using rule-based complexity checks and common password detection, producing structured JSON output for security assessment.
- Analyzes password strength using rule-based checks
- Detects weak passwords based on:
- Length
- Uppercase letters
- Lowercase letters
- Numbers
- Symbols
- Common password patterns
- Generates structured JSON reports
- Provides actionable security recommendations
- Ethical design: does not store or transmit passwords
- Modular Go architecture for maintainability
- Go 1.20 or higher
To install and run the tool, follow these steps:
-
Clone the repository:
git clone https://github.com/FD785/PassGuard.git
-
Navigate to the project directory:
cd PassGuard -
Install the dependencies:
go mod tidy
-
Run the tool:
go run ./cmd/passguard password123
Output will be like 👍
{
"score": 25,
"risk_level": "high", <--- Shows Password Vulnerability
"issues": [
"Password too short", |
"Missing uppercase letters", |--- Shows Password Vulnerability
"Missing symbols", |
"Common password pattern" |
],
"recommendations": [ |
"Use at least 12 characters", |
"Add uppercase characters", |--- Shows How to create a Strong Password
"Add special characters", |
"Avoid dictionary words" |
]
}