Attempt to make RSA key generation functional

This commit is contained in:
Matt C 2018-08-31 11:25:05 +01:00
parent f81ca3ba60
commit 31e758ca45
5 changed files with 25 additions and 9 deletions

View file

@ -49,10 +49,10 @@ class RSASign extends Operation {
const privateKey = forge.pki.decryptRsaPrivateKey(key, password);
const md = forge.md.sha1.create();
md.update(input, 'utf8');
md.update(input, "utf8");
const signature = privateKey.sign(md);
return signature.split('').map(char => char.charCodeAt());
return signature.split("").map(char => char.charCodeAt());
}
}