GithubHelp home page GithubHelp logo

adding entropy about bitaddress.org HOT 6 OPEN

pointbiz avatar pointbiz commented on May 17, 2024
adding entropy

from bitaddress.org.

Comments (6)

pointbiz avatar pointbiz commented on May 17, 2024

Yes this is a good feature request. A way to input entropy into a text field will be added to the site.

from bitaddress.org.

weissjeffm avatar weissjeffm commented on May 17, 2024

I notice that mouse movements and timestamps continue to be folded into the seed, even after the first address is generated. Is that deliberate?

I am not sure if each operation that needs random numbers should use the exact same PRNG or seed a fresh one each time. I am guessing that it's easier to guarantee uniformity when you use a single PRNG, however I have no idea if it makes any practical difference in this case.

from bitaddress.org.

jeremyawon avatar jeremyawon commented on May 17, 2024

The rc4 prng is only seeded once, when bytes are first requested. seed* calls continue to mix the pool but they aren't used.

from bitaddress.org.

weissjeffm avatar weissjeffm commented on May 17, 2024

I noticed that the constructor to SecureRandom is called many times throughout the codebase, I wasn't sure if that re-read the seed or not. Javascript is not one of my main languages.

If it doesn't start a new PRNG what exactly is it constructing?

from bitaddress.org.

jeremyawon avatar jeremyawon commented on May 17, 2024

SecureRandom instances don't have their own state. They just expose nextByte, which uses module level state. I don't understand why it's designed like this..

from bitaddress.org.

pointbiz avatar pointbiz commented on May 17, 2024

The design of SecureRandom is from Tom Wu. I refactored it to a module pattern but kept nextBytes as an instance function because I left functions static or instance as they were in the original.

I can confirm that it only seeds once when the bytes are first requested. I think we should aim for one good seed and that reseeding would be for usability after a lot of mouse movements or copy/paste entropy from another source into a text field.

from bitaddress.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.