Changed delimitor to None so non-hex characters can be detected.

This commit is contained in:
Ryan Chernoff 2025-04-21 17:33:24 -04:00
parent 1a6d238537
commit e231d1b37a

View file

@ -54,7 +54,7 @@ class XOR extends Operation {
run(input, args) {
input = new Uint8Array(input);
try {
const key = Utils.convertToByteArray(args[0].string || "", args[0].option, true),
const key = Utils.convertToByteArray(args[0].string || "", args[0].option, "None", true),
[, scheme, nullPreserving] = args;
return bitOp(input, key, xor, nullPreserving, scheme);