mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
Converted js files to mjs. Added test cases for hashing
This commit is contained in:
parent
37389a62c1
commit
4496d7762b
15 changed files with 9014 additions and 7827 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
import Operation from "../Operation";
|
||||
import OperationError from "../errors/OperationError";
|
||||
import * as GostDigest from "../vendor/streebog/gostDigest";
|
||||
import * as GostCoding from "../vendor/streebog/gostCoding";
|
||||
import GostCoding from "../vendor/streebog/gostCoding";
|
||||
import GostDigest from "../vendor/streebog/gostDigest";
|
||||
|
||||
/**
|
||||
* Streebog operation
|
||||
|
@ -81,7 +81,6 @@ class Streebog extends Operation {
|
|||
const gostDigest = new GostDigest({name: "GOST R 34.11", version, sBox, length });
|
||||
const gostCoding = new GostCoding();
|
||||
|
||||
|
||||
const decode = gostCoding.Chars.decode(input);
|
||||
const hexEncode = gostCoding.Hex.encode(gostDigest.digest(decode));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue