Code Monkey home page Code Monkey logo

Comments (13)

dcousens avatar dcousens commented on August 20, 2024

bitwiseshiftleft/sjcl#112

from elliptic.

beastybeast avatar beastybeast commented on August 20, 2024

Also some info here:

http://stackoverflow.com/questions/4083204/secure-random-numbers-in-javascript

from elliptic.

indutny avatar indutny commented on August 20, 2024

@beastybeast you could always supply entropy option to a genKeyPair: https://github.com/indutny/elliptic/blob/master/lib/elliptic/ec/index.js .

@dcousens I'll figure out IE11 crypto into it.

from elliptic.

beastybeast avatar beastybeast commented on August 20, 2024

That will not help because it is the load of elliptic.js that fails on the MS browsers. E.g. before I can call genKeyPair

from elliptic.

indutny avatar indutny commented on August 20, 2024

I don't think that this really could be the case. This function is invoked only in genKeyPair as far as I can see.

Could you please provide a error stack trace?

from elliptic.

beastybeast avatar beastybeast commented on August 20, 2024

Yes you are right - sorry!

from elliptic.

dcousens avatar dcousens commented on August 20, 2024

Why not just use crypto.randomBytes and let browserify do the drop in?
It has the same fall backs and doesn't use Math.random().

from elliptic.

indutny avatar indutny commented on August 20, 2024

@dcousens I just didn't really want to introduce much additional dependencies in this library.

from elliptic.

indutny avatar indutny commented on August 20, 2024

Should be fixed by 0.15.9, please verify!

from elliptic.

beastybeast avatar beastybeast commented on August 20, 2024

You must have changed something with the new elliptic.js file?

Unable to get down to genKeyPair

As the browser stops at this line:

var ec = new ellipticjs.ec('ed25519');

ellipticjs is now unknown??

from elliptic.

indutny avatar indutny commented on August 20, 2024

Right, incidentally broke it. Should be fixed in 0.15.10

from elliptic.

beastybeast avatar beastybeast commented on August 20, 2024

Seam to work now :-)

from elliptic.

indutny avatar indutny commented on August 20, 2024

Great!

from elliptic.

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.