mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Fully functional encrypt/decrypt
This commit is contained in:
parent
54cfb17145
commit
857d3b6d17
2 changed files with 31 additions and 13 deletions
|
@ -56,7 +56,8 @@ class SM2Decrypt extends Operation {
|
|||
var sm2 = new SM2(curveName, inputFormat);
|
||||
sm2.setPrivateKey(privateKey);
|
||||
|
||||
var result = sm2.decrypt(new Uint8Array(input))
|
||||
|
||||
var result = sm2.decrypt(input);
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue