2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

ESM: Added Hex ops and created a Hex library.

This commit is contained in:
n1474335
2018-04-02 18:06:48 +01:00
parent 0011e9caa8
commit eeb1d0a891
18 changed files with 391 additions and 196 deletions

View File

@@ -5,6 +5,7 @@
*/
import Utils from "./Utils";
import {fromHex} from "./lib/Hex";
/**
* The arguments to operations.
@@ -88,7 +89,7 @@ class Ingredient {
case "byteArray":
if (typeof data == "string") {
data = data.replace(/\s+/g, "");
return Utils.fromHex(data);
return fromHex(data);
} else {
return data;
}