brainwallet / brainwallet.github.io

Brainwallet site
https://brainwallet.org
291 stars 409 forks source link

Feed entropy into the RNG from mouse and key clicks #24

Closed tadasvaranavicius closed 11 years ago

tadasvaranavicius commented 11 years ago

Current RNG does not gather enough entropy, making http://brainwallet.org/#tx insecure when reusing addresses.

https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/src/jsbn/rng.js

// For best results, put code like // // in your main HTML document.

brainwallet commented 11 years ago

Merged, thanks a lot!