Compare commits

..

1 Commits

Author SHA1 Message Date
81780e5ab1 v1.2.4: bugfix RSA swapped n and e values (private key) 2018-12-09 21:08:18 -07:00
2 changed files with 2 additions and 1 deletions

View File

@ -164,6 +164,7 @@ SSH.parsePublicKey = function (ssh) {
, e: Enc.bufToUrlBase64(els[1])
};
} else {
console.log('len:', els.length);
ssh.jwk = {
kty: 'RSA'
, n: Enc.bufToUrlBase64(els[2])

View File

@ -1,6 +1,6 @@
{
"name": "ssh-to-jwk",
"version": "1.2.5",
"version": "1.2.4",
"description": "💯 SSH to JWK in a lightweight, zero-dependency library.",
"homepage": "https://git.coolaj86.com/coolaj86/ssh-to-jwk.js",
"main": "index.js",