Python/other/password_generator.py
Harshil Darji 4e3ff7c8e2 Initial
2016-08-14 12:18:30 +05:30

14 lines
379 B
Python

import string
from random import *
letters = string.ascii_letters
digits = string.digits
symbols = string.punctuation
chars = letters + digits + symbols
min_length = 8
max_length = 16
password = ''.join(choice(chars) for x in range(randint(min_length, max_length)))
print('Password: %s' % password)
print('[ If you are thinking of using this passsword, You better save it. ]')