Today I Learned
Search…
Generate random secure password using python
Posted on 23 Mar, 2021
>>> import string, random
>>> print("".join([random.choice(string.ascii_letters + string.digits + string.punctuation) for _ in range(random.randint(12,15))])
)
X6[!:p0yTZ^+
​Credits​
Copy link
Edit on GitHub