/PassGeneratorJava

Java code prompts user for password length and inclusion of uppercase, numbers, and special characters. It generates a random password accordingly.

Primary LanguageJava

Password Generator

This Java program generates random passwords based on user preferences. It prompts the user to specify the desired length of the password and whether to include uppercase letters, numbers, and special characters. The generated password is then displayed to the user.

Usage

  1. Run the program.
  2. Enter the desired length of the password.
  3. Answer the prompts regarding the inclusion of uppercase letters, numbers, and special characters.
  4. The generated password will be displayed.

Customization

Users can customize the complexity of the generated password by specifying the length and choosing whether to include uppercase letters, numbers, and special characters.

Example

Enter the length of the password: 12
Do you want to include uppercase letters? (yes/no): yes
Do you want to include numbers? (yes/no): yes
Do you want to include special characters? (yes/no): no
Generated Password: T6Kq87W2pX3n