Skip to content

Instantly share code, notes, and snippets.

@victorono
Created December 9, 2013 18:56
Show Gist options
  • Save victorono/7878528 to your computer and use it in GitHub Desktop.
Save victorono/7878528 to your computer and use it in GitHub Desktop.
Random password python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
from string import digits
from string import letters
def _pw(length=10):
s = ''
for i in range(length):
s += random.choice(digits + letters)
return s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment