DEV Community

Discussion on: How to create a password generator using react

Collapse
 
yoursunny profile image
Junxiao Shi

Math.random() is not cryptographically secure and must not be used to generate passwords.
Instead, use Crypto.getRandomValues().