dgrew

PythonPasswordGenerator

Dec 11th, 2020 (edited)
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import random
  2. i = 0
  3. length = 6
  4. for i in range(20):
  5.     passwd = list('0123456789abcdefghiklmnopqrstvxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,-_@#!$%^&*')
  6.     random.shuffle(passwd)
  7.     passwd = ''.join([random.choice(passwd) for x in range(length)])
  8.     print (passwd)
Add Comment
Please, Sign In to add comment