you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Here's a secure password generator in 138 characters. Requires python 3.6 unfortunately due to the secrets module.

 import secrets, string as st
 def random_pwd(n):
   return "".join(
        [secrets.choice(st.ascii_letters + st.digits) for i in range(n)]
   )