mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
byte length arg added
This commit is contained in:
parent
c9d9730726
commit
953a581a94
1 changed files with 7 additions and 1 deletions
|
@ -31,6 +31,11 @@ class FromBinary extends Operation {
|
||||||
"name": "Delimiter",
|
"name": "Delimiter",
|
||||||
"type": "option",
|
"type": "option",
|
||||||
"value": BIN_DELIM_OPTIONS
|
"value": BIN_DELIM_OPTIONS
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Byte Length",
|
||||||
|
"type": "number",
|
||||||
|
"value": 8
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
this.checks = [
|
this.checks = [
|
||||||
|
@ -78,7 +83,8 @@ class FromBinary extends Operation {
|
||||||
* @returns {byteArray}
|
* @returns {byteArray}
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
return fromBinary(input, args[0]);
|
const byteLen = args[1] ? args[1] : 8;
|
||||||
|
return fromBinary(input, args[0], byteLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue