Created
December 9, 2013 18:56
-
-
Save victorono/7878528 to your computer and use it in GitHub Desktop.
Random password python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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