@NextGen22Genera/

Password Generator

Python

No description

fork
loading
Files
  • main.py
  • password.txt

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6918875245512053","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHJhbmRvbQpwcmludCAoIiIiVGhpcyBpcyBteSBzaW1wbGUgcGFzc3dvcmQgZ2VuZXJhdG9yLiIiIikKbGV0dGVycyA9ICJhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5eiIKc3ltYm9scyA9ICIhPy5AIyRAKiIKbnVtYmVycyA9ICIxMjM0NTY3ODkiCmxlbmd0aCA9IGludChpbnB1dCgiSG93IGxvbmcgZG8geW91IHdhbnQgeW91ciBwYXNzd29yZD8gIikpCnBhc3N3b3JkID0gIiIKZm9yIGMgaW4gcmFuZ2UobGVuZ3RoKToKICByID0gcmFuZG9tLnJhbmRpbnQoMSwzKQogIGlmIChyID09IDEpOiAgICAgIAogIAlwYXNzd29yZCArPSByYW5kb20uY2hvaWNlKGxldHRlcnMpCiAgZWxpZiAociA9PSAyKToKCSAgcGFzc3dvcmQgKz0gcmFuZG9tLmNob2ljZShzeW1ib2xzKQogIGVsaWYgKHIgPT0gMyk6CgkgIHBhc3N3b3JkICs9IHJhbmRvbS5jaG9pY2UobnVtYmVycykKcHJpbnQgKHBhc3N3b3JkKQo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import random
print ("""This is my simple password generator.""")
letters = "abcdefghijklmnopqrstuvwxyz"
symbols = "[email protected]#[email protected]*"
numbers = "123456789"
length = int(input("How long do you want your password? "))
password = ""
for c in range(length):
  r = random.randint(1,3)
  if (r == 1):      
  	password += random.choice(letters)
  elif (r == 2):
	  password += random.choice(symbols)
  elif (r == 3):
	  password += random.choice(numbers)
print (password)