Skip to content

Instantly share code, notes, and snippets.

@teeler
Created July 13, 2012 01:40
Show Gist options
  • Select an option

  • Save teeler/3102212 to your computer and use it in GitHub Desktop.

Select an option

Save teeler/3102212 to your computer and use it in GitHub Desktop.
Left handed passwords
# 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