Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! usr/bin/python
- import string
- import random
- def generatePassword(num):
- password = ''
- for n in range(num):
- x = random.randint(10,94)
- password += string.printable[x]
- return password
- #you can change the length of the password where the number 16 is and make the password longer.
- print generatePassword(16)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement