DEV Community

Discussion on: How to build a Password Generator using Python

Collapse
 
sqlrob profile image
Robert Myers

You might want to change the guts of how the password is generated.

From the python docs:

Warning

The pseudo-random generators of this module should not be used for security >purposes. For security or cryptographic uses, see the secrets module.

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

Hello Robert!
We are mainly focused on creating a simple project for beginners to help them fluent in programming & become more familiar with basic problem-solving skills. This project may not be used in a real-life scenario and may only be applied as a training project.

Collapse
 
sqlrob profile image
Robert Myers • Edited

I understand that, but way too often code from these projects end up in production, or people come away with the idea "random" is good enough.

And considering the change is just changing random.sample to secrets.choice, it's easy enough to start people with good habits.

Thread Thread
 
mindninjax profile image
Rishabh Singh ⚡

You are right Robert! I will write to my editor and ask him to make changes ASAP! Once again thanks for your suggestion!

People like you help us refine our code and help the community!

Have a great day Robert!