Created
July 13, 2012 01:40
-
-
Save teeler/3102212 to your computer and use it in GitHub Desktop.
Left handed passwords
This file contains hidden or 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
| # Generate passwords of length suitable for typing with just your left hand. | |
| import os, random, string | |
| length = 10 | |
| chars = "12345qwertasdfgzxcvQWERT!@#$%ASDFGZXCV" | |
| random.seed = (os.urandom(1024)) | |
| print ''.join(random.choice(chars) for i in range(length)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment