python
random
4 years, 11 months ago
import random
import string
def randomPassword(stringLength):
password_characters=str("".join(random.choice(string.ascii_uppercase) for x in range(random.randint(6, 12))))+str("".join(random.choice(string.punctuation) for x in range(random.randint(6, 12))))+str("".join(random.choice(string.ascii_lowercase) for x in range(random.randint(6, 12))))+str("".join(random.choice(string.digits) for x in range(random.randint(6, 12))))
return "".join(random.choice(password_characters) for x in range(stringLength))
password = randomPassword(14)
print(password)
0 Comments
Please Login to Comment Here