Advertisement
harsh7i

GenRandomPass.py

Jun 20th, 2022 (edited)
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import random
  2. import string
  3.  
  4. lower=string.ascii_lowercase
  5. upper=string.ascii_uppercase
  6. num=string.digits
  7. symbols=string.punctuation
  8.  
  9. all=lower+upper+num+symbols
  10.  
  11. temp=random.sample(all,6)
  12. password="".join(temp)
  13.  
  14. print(password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement