GainTheImpossible
Banned by request of the account holder.
- May 29, 2020
- 1,025
- 1,440
In my journey to become a decent python developer, I've done this simple password generator script.
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
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