Write a menu driven program to generate password randomly
constraint:
- password should consist of
- lowercase Alphabet - a to z
- UpperCase Alphabet - A to Z
- Number - 0 to 9
- Special Symbol - !,@,#,$,%,&
- Password length should be
- Minimum - 7
- Maximum - 100
- Password should begin with a letter (can be lowercase or uppercase)
- Password should contain at least 2 lowercase letter , 2 uppercase letter, 1 number , and 1 special symbol
- Don't make use of any library function like rand() or srand().
- Each time generated password should be unique.
Program to generate random password in C++
Note: Program is compiled and executed on Code Block IDE (version 17.12) using GNU GCC Compiler on windows platform
Output
----------------------------- Random Password Generator ------------------------------ 1. Generate Password 2. Exit Press key 1 to Generate Password and key 2 to exit : 1 Enter Length : 16 ----------------------------- Password ------------------------------ w#yS2S!youMue6yw Press any key continue ----------------------------- Random Password Generator ------------------------------ 1. Generate Password 2. Exit Press key 1 to Generate Password and key 2 to exit : 1 Enter Length : 50 ----------------------------- Password ------------------------------ cE8o!UAO#k6Wi8cCK2!c4kMuq!W2eY40!eaS!oEwi2E#0u!yi# Press any key continue ----------------------------- Random Password Generator ------------------------------ 1. Generate Password 2. Exit Press key 1 to Generate Password and key 2 to exit : 2 Process returned 0 (0x0) execution time : 24.358 s Press any key to continue.need an explanation for this answer? contact us directly to get an explanation for this answer