mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-15 10:44:50 -04:00
Removed input extraction from try catch block to seperate input errors from key errors
This commit is contained in:
parent
01edeb28a6
commit
d3f943bee4
1 changed files with 1 additions and 1 deletions
|
@ -52,8 +52,8 @@ class XOR extends Operation {
|
||||||
* @returns {byteArray}
|
* @returns {byteArray}
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
try {
|
|
||||||
input = new Uint8Array(input);
|
input = new Uint8Array(input);
|
||||||
|
try {
|
||||||
const key = Utils.convertToByteArray(args[0].string || "", args[0].option),
|
const key = Utils.convertToByteArray(args[0].string || "", args[0].option),
|
||||||
[, scheme, nullPreserving] = args;
|
[, scheme, nullPreserving] = args;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue