mirror of
https://github.com/gchq/CyberChef
synced 2025-12-17 16:53:45 +00:00
Added support for astral characters to charcode ops
This commit is contained in:
@@ -108,8 +108,9 @@ const ByteRepr = {
|
||||
throw "Error: Base argument must be between 2 and 36";
|
||||
}
|
||||
|
||||
for (let i = 0; i < input.length; i++) {
|
||||
ordinal = Utils.ord(input[i]);
|
||||
const charcode = Utils.strToCharcode(input);
|
||||
for (let i = 0; i < charcode.length; i++) {
|
||||
ordinal = charcode[i];
|
||||
|
||||
if (base === 16) {
|
||||
if (ordinal < 256) padding = 2;
|
||||
|
||||
Reference in New Issue
Block a user