Giter Site home page Giter Site logo

eternaldeiwos / keyto Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 6.0 740 KB

A utility for translating cryptographic keys between representations

Home Page: https://eternaldeiwos.github.io/keyto

License: MIT License

JavaScript 100.00%
pem nodejs node node-js der base64 base64url hex webcrypto jose

keyto's People

Contributors

darksorrow avatar dependabot[bot] avatar dmitrizagidulin avatar eternaldeiwos avatar sirpy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

keyto's Issues

Support Ed448

There should eventually be support for this -- currently what's blocking this is the lack of a Javascript implementation of Ed448 private key to public key conversion. I might try doing the maths for this myself at a later stage.

Typescript Support

Are there any plans to include support for typescript with this package?

Incorrect crv for secp256k1

https://www.npmjs.com/package/jose

https://tools.ietf.org/html/draft-ietf-cose-webauthn-algorithms-03

expecting things to look more like:

{
      "crv": "secp256k1",
      "x": "JA5UfdPhdE3EdABYdSmhx06Xts7xCWOc0-zTMO-7byg",
      "y": "2ptGJHu6oSdyEMk--9yAD6okUK9h-2BU4mzyn7rDzxE",
      "d": "ikyyvmydSQxBNEtP8_rggV4xztqfuyzQh-0cXZh9iuk",
      "kty": "EC",
      "kid": "QhxsKsp2LNvS9cNp1STyryOiOrEs6f819AGemNVN5N0"
    },

Seeing;

{ kty: 'EC',
      crv: 'K-256',
      x: 'TKzoL1Fjqn8iGiyxI9xmaZyL2b5jSMLpQk_gOM__JcY',
      y: '7V1xVq7nNmSIiSSCNhNCESNoOz46ElSqW7Jw30QiqNc' }

P-512 should be P-521

I opened #2 to see if a quick fix would work, but it seems like there are some other things to consider. I'll dig in soon to see what's going on

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.