A simple yet effective C++ console application designed to evaluate password strength. This tool helps users ensure their passwords are secure by calculating entropy and detecting common passwords. It provides color-coded feedback for easy interpretation of password strength levels.
- Entropy Calculation: Determines the randomness of your password using entropy values.
- Common Password Detection: Flags passwords found in a predefined list of commonly used passwords.
- Color-Coded Feedback: Provides real-time feedback with colored text for weak, moderate, and strong passwords.
- Continuous Usage: Allows users to evaluate multiple passwords in a single session.
main.cpp
: The source code for the Password Security Tool.PasswordSecurityTool.cbp
: The Code::Blocks project file for easy setup in the Code::Blocks IDE.common_passwords.txt
: A text file containing a list of commonly used passwords for detection.README.md
: Documentation explaining the project and how to use it.
- C++ Compiler: Ensure you have a C++ compiler installed (e.g., GCC or the compiler included with Code::Blocks).
- Code::Blocks IDE (Optional): Download and install the Code::Blocks IDE.
- Download the Files:
- Clone the repository using Git:
git clone https://github.com/Kanish-d/Password-Security-Tool.git
- Alternatively, download the repository as a ZIP file and extract it.
- Clone the repository using Git:
-
Open the project:
- Launch Code::Blocks.
- Open the
PasswordSecurityTool.cbp
project file.
-
Verify the
common_passwords.txt
file path:- Ensure the
common_passwords.txt
file is in the same directory as the executable or adjust the file path in the code if needed.
- Ensure the
-
Build and Run:
- In Code::Blocks, click Build > Build and Run.
- Enter passwords when prompted to evaluate their strength.
-
Command Line (Alternative):
- Navigate to the folder containing the
main.cpp
file. - Compile the program using a terminal or command prompt:
g++ main.cpp -o PasswordSecurityTool
- Run the program:
./PasswordSecurityTool
- Navigate to the folder containing the
- Launch the application.
- Enter a password when prompted.
- View the feedback on your password's entropy, strength, and whether it's a common password.
- Repeat as needed or type
exit
to close the program.
Enter your password (or type 'exit' to quit): mypassword123
Password Entropy: 47.6 bits
Warning: Your password is commonly used and weak!
Password Strength: Weak
------------------------------------
Enter your password (or type 'exit' to quit):
This project is open-source and available under the MIT License. You are free to use, modify, and distribute it as per the terms of the license.
Contributions are welcome! If you have suggestions or improvements, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add a new feature"
- Push your branch:
git push origin feature-name
- Open a pull request for review.