Here is a simple python generator that use the "Random" module with a random.sample() method. The generated password is a combination of upper and lowercase letters, numbers and symbols. To make the password more complex and not easy to hack, the length of the password has been set to 20.
Give it a try, feel free to improve it and let me know!
Top comments (2)
You are absolutely right, I actually have a much more advanced version of this code and I used the functions. However in the newer version I have the *password_length * as an input function to allow users to enter whatever length / characters they want (between 12 and 20)...
Let me try the randomness part, that a good idea too.