Kxffie

Python Password Generator v1

Jan 29th, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import random
  2. import string
  3.  
  4. passLimit = int(input("Password Character Limit - "))
  5. passAmount = int(input("Password Amount - "))
  6.  
  7. def insert():
  8. for i in range(passAmount):
  9. randomChar = ''.join(random.sample(string.ascii_letters + string.punctuation + string.hexdigits + string.octdigits + string.digits, k=passLimit))
  10. print(randomChar)
  11.  
  12. insert()
Advertisement
Add Comment
Please, Sign In to add comment