Merge branch 'use-lowercase-for-asn1' of https://github.com/mikecat/CyberChef

This commit is contained in:
n1474335 committed 2022-11-25 11:55:19 +00:00
commit f79c3ae91a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ class ParseASN1HexString extends Operation {
*/
run(input, args) {
const [index, truncateLen] = args;
return r.ASN1HEX.dump(input.replace(/\s/g, ""), {
return r.ASN1HEX.dump(input.replace(/\s/g, "").toLowerCase(), {
"ommitLongOctet": truncateLen
}, index);
}
+1 -1
View File
@@ -59,7 +59,7 @@ class ParseX509Certificate extends Operation {
switch (inputFormat) {
case "DER Hex":
input = input.replace(/\s/g, "");
input = input.replace(/\s/g, "").toLowerCase();
cert.readCertHex(input);
break;
case "PEM":