Free Password Generator

GainTheImpossible

Banned by request of the account holder.
Joined
May 29, 2020
Messages
1,025
Reaction score
1,440
In my journey to become a decent python developer, I've done this simple password generator script.

Python:
import random

letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']

print("Welcome to the free password generator")

nr_letters = int(input("How many letter should be in the password?\n"))
nr_numbers = int(input("How many numbers should be in the password?\n"))
nr_symbols = int(input("How many symbols should be in the passsword?\n"))

password_list = []

for char in range(1, nr_letters + 1):
  password_list.append(random.choice(letters))

for char in range(1, nr_symbols + 1):
  password_list += random.choice(symbols)

for char in range(1, nr_numbers + 1):
  password_list += random.choice(numbers)

random.shuffle(password_list)

password = ""
for char in password_list:
  password += char

print(f"Your password is: {password}")

Enjoy, I guess.

To make it work -> Download python or put it in a .py file and convert it to .exe(look on YT)

The nice thing? No need to go on Google for a password or think about one ;)
 
great share brother , i used to learn python some years ago and still want to continue it but no time .
I love pyhton
 
great share brother , i used to learn python some years ago and still want to continue it but no time .
I love pyhton
Nice share. :)
Works, even tried over 10,000 characters.

Happy to be helping!

Yeah it doesn't really hold limits to how many chars/numbers/symbols you can generate. You should resume to optimal amount for a password though.

When I'll get some time I'll put the script through a function and make a GUI for an easy-to-use(newbie friendly) interface. I'll post it as soon as I make it!
 
Back
Top