imDarshanGK / Password-generator-project

Generates a random password with a mix of letters, symbols, and numbers
2 stars 0 forks source link

Use `secrets` instead of `random` #1

Open felixgao-0 opened 2 months ago

felixgao-0 commented 2 months ago

Hello there!

Fellow Arcade guy here, saw your project on the scrapbook

I'd advise you usesecrets as it is built to be cryptographically secure, while random can technically be predicted and isn't meant for security applications

here are their docs: https://docs.python.org/3/library/secrets.html

Happy hackathon!

felixgao-0 commented 2 months ago

Also btw you can also use strings instead of typing all the letters out manually

https://docs.python.org/3/library/string.html

imDarshanGK commented 1 month ago

Hello!

Thank you so much for the valuable feedback and for checking out my project! 🙌

You're absolutely right about using 'secrets' for cryptographic security. I'll definitely consider switching to it for better security in password generation.

I appreciate the link to the documentation—I'll dive into it and make the necessary updates.

Thanks again for the advice and happy hackathon to you too! 🎉

Best, Felix G @felixgao-0

felixgao-0 commented 1 month ago

Happy hackathon! 🥳

felixgao-0 commented 1 month ago

I'm on the Arcade slack! @Felix Gao