Closed
Bug 354840
Opened 18 years ago
Closed 12 years ago
Give web pages a way to obtain high-quality random numbers (e.g. for crypto key or password generation)
Categories
(Core :: JavaScript Engine, enhancement)
Tracking
()
RESOLVED
DUPLICATE
of bug 440046
People
(Reporter: jruderman, Unassigned)
References
Details
There are some sites that use JavaScript to generate passwords, etc. I bet they would be happy if they could use high-quality random numbers instead of the easily attacked Math.random().
(One site, http://www.fourmilab.ch/javascrypt/, has its own entropy collector. But I'd think the page usually isn't loaded long enough to get a decent amount of entropy from mouse movements...)
Comment 1•18 years ago
|
||
Dupe of bug 322529?
Reporter | ||
Comment 2•18 years ago
|
||
No. Mersenne Twister is a pseudo-random number generator, not a source of high-quality random bits. It's not even especially strong against attacks that try to determine the PRNG's state by looking at its output.
Comment 3•16 years ago
|
||
(In reply to comment #0)
> There are some sites that use JavaScript to generate passwords, etc. I bet
> they would be happy if they could use high-quality random numbers instead of
> the easily attacked Math.random().
window.crypto.random() is intended for this purpose. Marking this bug as dependent on 440046.
Depends on: 440046
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•