Obviously there's no real crypto here. It is usefull, for example, regenerating and emailing a user password.
- import string
- from random import choice
- size=9
- pwd = ''.join ( [ choice (string.letters + string.digits ) for i in range ( size ) ]
- # Putting in practice the string module
- print pwd.lower
There's an application written in Python to generate random passwords for use wherever good (or bad) passwords are required. It is PyKey.
No comments:
Post a Comment