mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
Fixed RSA Sign and Verify character encodings
This commit is contained in:
parent
d635cca210
commit
895a929925
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ class RSASign extends Operation {
|
|||
const privateKey = forge.pki.decryptRsaPrivateKey(key, password);
|
||||
// Generate message hash
|
||||
const md = MD_ALGORITHMS[mdAlgo].create();
|
||||
md.update(input, "utf8");
|
||||
md.update(input, "raw");
|
||||
// Sign message hash
|
||||
const sig = privateKey.sign(md);
|
||||
return sig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue