PEMtoHex: Support arbitrary PEMs

previous implementation only supported some PEMs (e.g. Certificate)

the new implementation is more general,
it just extracts the base64 between
header and footer and decodes that to hex
This commit is contained in:
CPlusSharp 2021-11-07 11:21:17 +01:00
parent ae1b12c120
commit 1dbcd2ac84
3 changed files with 317 additions and 11 deletions

View file

@ -66,6 +66,7 @@ import "./tests/PGP.mjs";
import "./tests/PHP.mjs";
import "./tests/ParseIPRange.mjs";
import "./tests/ParseQRCode.mjs";
import "./tests/PEMtoHex.mjs";
import "./tests/PowerSet.mjs";
import "./tests/Regex.mjs";
import "./tests/Register.mjs";