r/pythontips • • Apr 24 '21

Module Small password generator using Secrets module

I created a small password generator which uses Secrets module not the Random module which makes it more secured:

https://geekyhumans.com/generate-passwords-using-python-and-secrets/

59 Upvotes

2 comments sorted by

4

u/bad_mann_ers Apr 24 '21

This is a fun program, easy to follow, lots of little tidbits worth learning! I always wondered what the secrets module was good for, and you don't often see people using it. Thanks for sharing!

3

u/geekyhumans Apr 25 '21

Thanks a lot. You'll see most of the tutorial using random module, that also does the same job but secrets is a kind of more secured one.