[pycrypto] Crypto.Random for password generation

Dwayne Litzenberger dlitz at dlitz.net
Tue Apr 23 23:20:43 PDT 2013


On Sun, Apr 14, 2013 at 10:44:56AM -0600, Alex Beal wrote:
>I was wondering if Crypto.Random is suitable for password generation
>purposes. I maintain an xkcd-style password generator (
>https://github.com/beala/xkcd-password) and have switched from python's
>random.SystemRandom to pycrypto's Crypto.Random. Python only makes vague
>guarantees about random.SystemRandom, so I thought pycrypto would be a
>better choice. Any input would be appreciated.

Yes.  Crypto.Random is designed to be a cryptographically strong random 
number generator, so it should work fine as a random source for password 
generation.

Cheers,
- Dwayne

-- 
Dwayne C. Litzenberger <dlitz at dlitz.net>
  OpenPGP: 19E1 1FE8 B3CF F273 ED17  4A24 928C EC13 39C2 5CF7


More information about the pycrypto mailing list