Password Generator
Making good passwords is harder than memorizing them.
Introduction
Hello thereπ, I thought of making a small project to better grasp the python programming language and at the same time make something relevant to what I like a mini cyber project.π
So I thought what should I do?π€ Ahaa! I know a small program that suggests better passwords than what most people come up with like password
π, <insert username><some year>
π or iloveyou
π which are all very easy to guess and bruteforce. So I started grinding away as usual, let’s check the simple password generator below.
Program
This is a password generator program written in python. Few libraries were used in this program to simplify the program and decrease written lines of code as much as possible. First of all we import the necessary libraries. Random to generate random ints, and string to populate the data lower, upper, digits and symbols.
|
|
We then ask for the user input, initiating the program and determining the length of the password.
|
|
Assign variables containing the letters, nums, and symbols from library.
|
|
Append all variables to one variable, in addition to that we randomize the generated string of password saving it to a temporary variable. Finally we move it from temp to a password variable to be printed.
|
|
Moral of the story
Hope this small program has peaked your interest to discover more and more importantly develop more complex passwords. At least next time you think about making a new account on some website remember to use something similar such a Password Manager or think of some hard password to guessπ. Until next time see yaπ.