With so much drive to be more secure online and needing more individualized passwords with different requirements for numbers, letters, and symbols, a pseudo-random password generator would be a great little tool to help to stay secure!
Looking a little more at the requirements for passwords, they often need to be a certain length (usually between 8-16 characters), contain at least one letter, number, and a symbol, and the random element helps make them really difficult to guess if someone wanted to try to get into an account or profile.
The script needs to be able to do each of these easily, and Python is a great language to do this with because it has a great set of libraries that can be imported and help build the tool pretty quickly and successfully.
So, to restate the requirements, it needs to generate completely random passwords of any length with letters, numbers, and symbols.
Here’s how I did it:
The first step for this script is to set the requirements for the password. It’s up to the user how long they want the password to be (there is no minimum or maximum value at this point), and for that, we need to use input()
, which tells the script that the user needs to input how long the password should be.
#cybersecurity #python #programming #passwords #security