mirror of
https://github.com/gchq/CyberChef
synced 2025-12-15 15:53:30 +00:00
Improved performance of str/array buffer conversions
This commit is contained in:
@@ -84,7 +84,7 @@ class FromBCD extends Operation {
|
||||
break;
|
||||
case "Raw":
|
||||
default:
|
||||
byteArray = Utils.strToByteArray(input);
|
||||
byteArray = new Uint8Array(Utils.strToArrayBuffer(input));
|
||||
byteArray.forEach(b => {
|
||||
nibbles.push(b >>> 4);
|
||||
nibbles.push(b & 15);
|
||||
|
||||
Reference in New Issue
Block a user