Quick, Simple Password Generator


/ Published in: Python
Save to your folder(s)

Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.


Copy this code and paste it in your HTML
  1. import string
  2. from random import choice
  3.  
  4. size = 9
  5. ''.join([choice(string.letters + string.digits) for i in range(size)])

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.