DEV Community 👩‍💻👨‍💻

Discussion on: Password Generator With Bootstrap 5 And Javascript.

Collapse
 
sqlrob profile image
Robert Myers

You shouldn't be using Math.Random for generating passwords, or indeed, for anything secure.

You want to be using Crypto.getRandomValues, throwing out invalid values with with thresholds,optionally using bit masking before for an optimization.

Collapse
 
yongdev profile image
Prosper Ugbovo • Edited on

oh thanks i'll go do some findings and update the code

Some comments have been hidden by the post's author - find out more