mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Added PGP verify operation
Added some more metadata to decrypt & verify Fixes gchq/CyberChef#581
This commit is contained in:
parent
ca9bab5d4c
commit
4c27a46d35
2 changed files with 114 additions and 2 deletions
|
@ -93,7 +93,7 @@ class PGPDecryptAndVerify extends Operation {
|
|||
text += `${signer.username} `;
|
||||
}
|
||||
if (signer.comment) {
|
||||
text += `${signer.comment} `;
|
||||
text += `(${signer.comment}) `;
|
||||
}
|
||||
if (signer.email) {
|
||||
text += `<${signer.email}>`;
|
||||
|
@ -102,7 +102,8 @@ class PGPDecryptAndVerify extends Operation {
|
|||
}
|
||||
text += [
|
||||
`PGP fingerprint: ${km.get_pgp_fingerprint().toString("hex")}`,
|
||||
`Signed on ${new Date(ds.sig.hashed_subpackets[0].time * 1000).toUTCString()}`,
|
||||
`PGP key ID: ${km.get_pgp_short_key_id()}`,
|
||||
`Signed on ${new Date(ds.sig.when_generated() * 1000).toUTCString()}`,
|
||||
"----------------------------------\n"
|
||||
].join("\n");
|
||||
text += unboxedLiterals.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue