Skip to content

GPPanos/password-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

 Password Validator

This simple Java program, PasswordValidator, is designed to validate user passwords based on specific criteria. It checks if the password contains at least one digit, one lowercase letter, one special character from the set [!@#$%^&*], and has a length between 5 and 10 characters.

Usage

1. **Clone the Repository:**
   ```bash
   git clone https://github.com/your-username/PasswordValidator.git
   ```

2. **Compile and Run:**
   ```bash
   javac PasswordValidator.java
   java PasswordValidator
   ```

3. **Input Password:**
   Enter a password when prompted by the program.

4. **Output:**
   The program will display whether the entered password is valid or not.

 Example

```java
***Password Validator ***

Enter your password: MyP@ssw0rd
true
Valid password. Thank you.
```

 Note

- Ensure you have Java installed on your system.
- The password criteria can be adjusted by modifying the `PASSWORD_PATTERN` in the code.

Feel free to contribute or customize the code to fit your specific requirements. If you encounter any issues or have suggestions for improvement, please create an issue or pull request.

Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published