Making a password generator like program

I found this cool password generator like code in python. I liked and it tweaked it a bit.

This is in no way superior to actual password generator out there. It’s just a fun little code that was made for fun.

The code:

import random

lower = "abcdefghiklmnopqrstvxyz"
upper = "ABCDEFGHIKLMNOPQRSTVXYZ"
numbers = "01234567889"
symbols = "[](){}!@#$%^&*-_+="

all = lower + upper + numbers + symbols

lenght = 32

password = "".join(random.sample(all, lenght))

print(password)

You can add more symbols and increase the length to make the password more secure.

back to the blog