Created
September 22, 2010 07:00
-
-
Save orip/591266 to your computer and use it in GitHub Desktop.
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
# one-liner for generating a 14-char password | |
# On Windows this is a secure password, based on CryptGenRandom | |
# On *nix this is based on /dev/urandom which is intended to be a cryptographically-secure PRNG but | |
# usually isn't. It should still be good enough for passwords. | |
python -c "import random, string; r = random.SystemRandom(); print ''.join(r.choice(string.letters + string.digits) for i in xrange(14))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment