mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Attempt to make RSA key generation functional
This commit is contained in:
parent
f81ca3ba60
commit
31e758ca45
5 changed files with 25 additions and 9 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue