8 comments

[ 3.5 ms ] story [ 33.4 ms ] thread
Wanted to create a very simple password generator. Is it sufficient, or there're some indispensable features missing?
(comment deleted)
Also, need feedback around the UI. Is it too simple?
From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Math.random() does not provide cryptographically secure random numbers. Do not use them for anything related to security. Use the Web Crypto API instead, and more precisely the window.crypto.getRandomValues() method

I have updated the logic to use window.crypto.getRandomValues(); also made some UI adjustments.