4 ms·
JavaScript's random generator is not cryptographically "secure" because it's not random enough. You can however make your own random generator by using keyboard
by z3t4 10y ago
JavaScript's random generator is not cryptographically "secure" because it's not random enough. You can however make your own random generator by using keyboard/mouse input, microphone noise, etc for entropy.
- epmatsw 10y agoTo be fair, window.crypto.getRandomValues is available back to IE11 and is cryptographically secure.
- taco_emoji 10y agoLooks like SJCL can do exactly that: https://github.com/bitwiseshiftleft/sjcl/blob/master/core/random.js#L242 https://github.com/bitwiseshiftleft/sjcl/blob/master/core/ra...