@heyitsmarcus/

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.708127811710954","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"I25vdCBteSBjb2RlLCBoZWxwIGZpbGUgZm9yIFJlcGwgVGFsay0+QXNrCgppbXBvcnQgcmFuZG9tCnByaW50ICgiIiJUaGlzIGlzIG15IHNpbXBsZSBwYXNzd29yZCBnZW5lcmF0b3IuIiIiKQpsZXR0ZXJzID0gImFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IgpzeW1ib2xzID0gIiE/LkAjJEAqIgpudW1iZXJzID0gIjEyMzQ1Njc4OSIKbGVuZ3RoID0gaW50KGlucHV0KCJIb3cgbG9uZyBkbyB5b3Ugd2FudCB5b3VyIHBhc3N3b3JkPyAiKSkKcGFzc3dvcmQgPSAiIgpmb3IgYyBpbiByYW5nZShsZW5ndGgpOgogIHIgPSByYW5kb20ucmFuZGludCgxLDMpCiAgaWYgKHIgPT0gMSk6CiAgCXBhc3N3b3JkICs9IHJhbmRvbS5jaG9pY2UobGV0dGVycykKICBlbGlmIChyID09IDIpOgoJICBwYXNzd29yZCArPSByYW5kb20uY2hvaWNlKHN5bWJvbHMpCiAgZWxpZiAociA9PSAzKToKCSAgcGFzc3dvcmQgKz0gcmFuZG9tLmNob2ljZShudW1iZXJzKQpwcmludCAocGFzc3dvcmQp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#not my code, help file for Repl Talk->Ask

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)