Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] Native RSA in node v10.12+ #178

Open
coolaj86 opened this issue Nov 6, 2018 · 1 comment
Open

[SOLVED] Native RSA in node v10.12+ #178

coolaj86 opened this issue Nov 6, 2018 · 1 comment

Comments

@coolaj86
Copy link
Contributor

coolaj86 commented Nov 6, 2018

Node v10+ has Native RSA Support now

As of node v10.12, we now have native RSA key generation:

PEM <-> JWK

R.I.P. uRSA

We'll still have to use jwk-to-pem, and rsa-pem-to-jwk for conversion, but I think it's safe to let uRSA R.I.P. is it not?

It looks like the one thing that it does that still can't be done in node (aside from splitting the key into components, which can be done with reasonable memory and cpu efficiently using asn1.js) is converting ssh public keys to standard pems.

Edit: It turns out that PEM-to-SSH and SSH-to-PEM are trivial to do, so I've added that functionality to Rasha.js. The format for SSH keys is just [32-bit length]["ssh-rsa"] [32-bit length][rsa n] [32-bit length][rsa e]

Is there anything else that's still missing from node?

@rzr
Copy link

rzr commented Nov 15, 2018

Try:
#180
Review welcome too

Maintainer feedback welcome, is project orphaned ?

@coolaj86 coolaj86 changed the title Native RSA in node v11: Can uRSA finally rest in peace? [SOLVED] Native RSA in node v10.12+ Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants