PGP Signature Verifier Online
Read OpenPGP public keys (fingerprint, key ID, user IDs, subkeys, expiry, flags) and verify detached, cleartext or inline signatures. No private keys.
Result
Press “Run” to see the result.
Send an ASCII-armored public_key (or base64) to get each certificate: key version (v4 and v6 of RFC 9580), algorithm and size or curve, fingerprint and key ID, creation and expiry dates, usage flags (certify, sign, encrypt, authenticate), revocation, user IDs with name, comment and e-mail, and subkeys with their own flags and expiry. Self-signatures (user ID certifications, direct-key and subkey binding signatures) are verified, so a tampered key shows up; the armor checksum is checked and warnings flag weak RSA, DSA / Elgamal, SHA-1 self-signatures, expired or revoked keys. Instead of a key you can give email: the key is looked up by Web Key Directory (WKD) and then keys.openpgp.org.
To verify a signature, add a detached signature with the message (text) or message_base64 (file), or a signed_message: a cleartext signed message (-----BEGIN PGP SIGNED MESSAGE-----, dash-escaping and trailing spaces handled) or an inline-signed PGP MESSAGE (compressed with ZIP / ZLIB or not). Binary and text signatures (CRLF canonicalisation) are supported with RSA, Ed25519 (legacy EdDSA and v6) and ECDSA P-256 / P-384 / P-521 over SHA-1/256/384/512. Each signature reports the signer (primary key or subkey), creation and expiry, and notes such as a revoked or expired key.
Our own implementation with WebCrypto (no GPL / LGPL code). Private keys are refused, encrypted messages are not decrypted and nothing is stored. A valid signature only proves the key signed it: confirm the fingerprint with its owner.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/pgp-tools" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"public_key":"-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxioGY4d/4xsAAAAg+U2nu0jWCmHlZ3BqZYfQMxmZu52JGggkLq2EVD34laPCsQYf…\n-----END PGP PUBLIC KEY BLOCK-----","signed_message":"-----BEGIN PGP SIGNED MESSAGE-----\n\nWhat we need from the grocery store:\n\n- - tofu\n- - vegetables\n- - noodles\n\n-----BEGIN PGP SIGNATURE-----\n…\n-----END PGP SIGNATURE-----"}'const res = await fetch('https://apibox.io.vn/v1/pgp-tools', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"public_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxioGY4d/4xsAAAAg+U2nu0jWCmHlZ3BqZYfQMxmZu52JGggkLq2EVD34laPCsQYf…\n-----END PGP PUBLIC KEY BLOCK-----",
"signed_message": "-----BEGIN PGP SIGNED MESSAGE-----\n\nWhat we need from the grocery store:\n\n- - tofu\n- - vegetables\n- - noodles\n\n-----BEGIN PGP SIGNATURE-----\n…\n-----END PGP SIGNATURE-----"
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/pgp-tools",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"public_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxioGY4d/4xsAAAAg+U2nu0jWCmHlZ3BqZYfQMxmZu52JGggkLq2EVD34laPCsQYf…\n-----END PGP PUBLIC KEY BLOCK-----", "signed_message": "-----BEGIN PGP SIGNED MESSAGE-----\n\nWhat we need from the grocery store:\n\n- - tofu\n- - vegetables\n- - noodles\n\n-----BEGIN PGP SIGNATURE-----\n…\n-----END PGP SIGNATURE-----"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/pgp-tools');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"public_key":"-----BEGIN PGP PUBLIC KEY BLOCK-----\\n\\nxioGY4d/4xsAAAAg+U2nu0jWCmHlZ3BqZYfQMxmZu52JGggkLq2EVD34laPCsQYf…\\n-----END PGP PUBLIC KEY BLOCK-----","signed_message":"-----BEGIN PGP SIGNED MESSAGE-----\\n\\nWhat we need from the grocery store:\\n\\n- - tofu\\n- - vegetables\\n- - noodles\\n\\n-----BEGIN PGP SIGNATURE-----\\n…\\n-----END PGP SIGNATURE-----"}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Can it encrypt or decrypt?
No. It only reads public keys and verifies signatures; private keys are never accepted.
Which algorithms are supported?
Keys of any algorithm are read; signatures are verified for RSA, Ed25519 and ECDSA NIST curves. Brainpool, Ed448 and DSA signatures are reported as unsupported.
Why does the signature say "not in the given public key"?
It was made by another key (see issuer_fingerprint). Send the signer’s public key, including its subkeys.