Assignment 2 Specification
A website requires the users to input username and password to register. Write a program to
check the validity of password input by users. Following are the criteria for checking the
• At least 1 letter between [a-z]
• At least 1 number between [0-9]
• At least 1 letter between [A-Z]
• At least 1 character from [$#@]
• Minimum length of transaction password: 6
• Maximum length of transaction password: 12
Once the validity of the password is checked apply the Caesar cipher encryption method on this
password before storing the password. Add all the digits of your data of birth and mod it with
26 and use this number as key to encrypt the message. Further the encrypted password shall be
decrypted and displayed with the password revel option.
The students shall develop a logic to check the validity of a password based on the given
criteria. Alongside develop the detailed logic to encrypt and decrypt the password using sum of
digits of your date of birth. The logic has to be displayed using a flowchart and an algorithm.
Further a program has to be coded to implement the logic. The program has to be interactive to
get the password and display appropriate messages when it is not valid.