Adm1n_0v3rride

Password generator

May 11th, 2017
155
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! usr/bin/python
  2.  
  3. import string
  4. import random
  5.  
  6. def generatePassword(num):
  7.     password = ''
  8.    
  9.     for n in range(num):
  10.         x = random.randint(10,94)
  11.         password += string.printable[x]
  12.        
  13.     return password
  14.  
  15. #you can change the length of the password where the number 16 is and make the password longer.
  16.    
  17. print generatePassword(16)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×