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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user