A simple console-based Password Generator built using Java. This project allows users to generate strong, random passwords with customizable length and optional inclusion of numbers and symbols.
- Generate strong random passwords
- Custom password length
- Option to include numbers
- Option to include symbols
- Easy-to-use console interface
- Random number generation (
Random) - String manipulation
- Conditional statements
- Loops
- User input using
Scanner
- Java (JDK 8 or higher)
- Console / Command Line
PasswordGenerator.java
README.md
-
Clone or download the project
-
Open a terminal in the project directory
-
Compile the program:
javac PasswordGenerator.java
-
Run the program:
java PasswordGenerator
Enter password length: 12
Include numbers? (yes/no): yes
Include symbols? (yes/no): yes
Generated Password: A9@dP#3xQ!m2
- Ensure at least one number and one symbol in the password
- Password strength indicator (Weak / Medium / Strong)
- GUI version using Swing or JavaFX
- Copy password to clipboard
This project is open-source and free to use for learning purposes.