A command-line tool written in Rust that allows you to analyze password security, generate secure passwords, and detect if a password is common (based on wordlists).
- Checks the strength of given passwords (length, special characters, etc.).
- Detects passwords that appear in common password files (
wordlist.txt). - Generates secure passwords with the most important criteria.
- User-friendly command-line interface using
clap. - Output with colors and symbols for clear visualization (requires ANSI support).
- Clone the repository:
git clone https://github.com/RicardoUMC/Password-Analyzer-Cli.git
cd Password-Analyzer-Cli-
Make sure you have Rust installed.
-
Build the project:
cargo build --releasecargo run -- MySecureP@ssw0rd!cargo run -- -gor using the following form:
cargo run -- --generateSuppose you have a list in wordlist.txt and want to check if the password is included:
cargo run -- -c wordlist.txt "123456"or using the long form of the option:
cargo run -- -common wordlist.txt "123456"src/main.rs– Main entry point of the program.src/cli/– Module responsible for handling the command-line interface and argument processing.src/common/– Module for loading common passwords (wordlist.txt).src/password/– Module containing the core logic for password analysis and generation.src/utils/– Module with various auxiliary functions such as screen prints.wordlist.txt– Optional wordlist of common passwords, upload your own file.
Received password: MySecureP@ssw0rd!
--- Security Analysis ---
✓ Valid length (>=10)
✓ Has uppercase
✓ Has lowercase
✓ Has numbers
✓ Has symbols
Password strength: [■■■■■■■■■■] 100% (Strong)This project is licensed under the MIT License. See the LICENSE file for more details.
Developed by Ricardo Mora.