DEV Community 👩‍💻👨‍💻

Discussion on: Password Generator With Bootstrap 5 And Javascript.

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.

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