Adm1n_0v3rride

Python password Generator

Jun 2nd, 2017
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2. # password generator made by Adm1n_0v3rride
  3.  
  4. import string, random
  5.  
  6. def displayWelcome():
  7.     print ("welcome to Adm1n's password Generator v1.0")
  8.     print ""
  9.  
  10. def passwordLength():
  11.     string = raw_input("How long do you want your password to be: ")
  12.     print ""
  13.    
  14. def generatePassword(num):
  15.     password = ''
  16.    
  17.         for n in range(num):
  18.             x = random.randint(10,34)
  19.             password += string.printable[x]
  20.            
  21.             return password
  22.            
  23.     print generatePassword()
RAW Paste Data