#K65372. Password Validation Challenge
Password Validation Challenge
Password Validation Challenge
Given a password string, determine whether it is valid based on the following criteria:
- The length must be at least \(8\) characters.
- It must contain at least one uppercase letter (A-Z).
- It must contain at least one lowercase letter (a-z).
- It must contain at least one digit (0-9).
- It must contain at least one special character from the set:
!@#$%^&*()_+-=[]{}|;:'",.<>/?
.
Your task is to write a program that reads a password from stdin and prints Valid
if the password meets all the criteria, otherwise prints Invalid
.
inputFormat
The input consists of a single line containing the password string.
outputFormat
Output a single line: Valid
if the password meets all the criteria; otherwise, output Invalid
.
Password123!\n
Valid\n