The Ultimate Password Generator (DAY 2)
Luke 13:25: "After the master of the house has arisen and locked the door, then will you stand outside knocking and saying, βLord, open the door for us.β He will say to you in reply, βI do not know where you are from.β"
In the previous post, I created a python program to generate secure passphrases. This is Day 2, and I have added the functionality to create random passwords with alphabets, numerals and symbols.
A few differences may be noticed from the previous post, since I have added some user validation to the user input code. I also added a python dictionary to store the options chosen by the user while generating the password or passphrase. The different files can be viewed in the embeded repl below.
The main.py file, which I refer to as the 'captain' is first executed by the python compiler. The main program them imports the pass_word.py and pass_phrase.py which generate the password and passphrase respectively...
The Code #
Sample Ouptut #
***********************************
* THE ULTIMATE PASSWORD GENERATOR *
***********************************
Would you like to generate a password or a passphrase?: password
Enter the number of characters: 10
Should numbers be included? (y/n): y
Should symbols be included? (y/n): y
Your password is:
"%62O7nG3\
Would you like to generate a new password? (y/n): n
Termiantion Initiated!
At the very end, the user is asked whether the task should be repeated or not. This wraps up "The Ultimate Password Generator" which I created for my own use. Remake of the Bitwarden Password Generator in a Pyhton Command Line Interface.
- Previous Post: The Ultimate Password Generator (DAY 1)