Skip to content

Instantly share code, notes, and snippets.

@berlotto
Created August 1, 2013 13:21
Show Gist options
  • Save berlotto/6131259 to your computer and use it in GitHub Desktop.
Save berlotto/6131259 to your computer and use it in GitHub Desktop.
Random choice string to generate passwords
import random
import string
pwd = ''.join(random.choice(string.printable) for x in range(8))
print pwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment