mirror of
https://github.com/gchq/CyberChef
synced 2025-01-04 00:38:41 +00:00
Merge branch 'use-lowercase-for-asn1' of https://github.com/mikecat/CyberChef
This commit is contained in:
commit
f79c3ae91a
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ class ParseASN1HexString extends Operation {
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
const [index, truncateLen] = args;
|
const [index, truncateLen] = args;
|
||||||
return r.ASN1HEX.dump(input.replace(/\s/g, ""), {
|
return r.ASN1HEX.dump(input.replace(/\s/g, "").toLowerCase(), {
|
||||||
"ommitLongOctet": truncateLen
|
"ommitLongOctet": truncateLen
|
||||||
}, index);
|
}, index);
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ParseX509Certificate extends Operation {
|
||||||
|
|
||||||
switch (inputFormat) {
|
switch (inputFormat) {
|
||||||
case "DER Hex":
|
case "DER Hex":
|
||||||
input = input.replace(/\s/g, "");
|
input = input.replace(/\s/g, "").toLowerCase();
|
||||||
cert.readCertHex(input);
|
cert.readCertHex(input);
|
||||||
break;
|
break;
|
||||||
case "PEM":
|
case "PEM":
|
||||||
|
|
Loading…
Reference in a new issue