Generate full 40‑character hex fingerprint and Key ID from any GnuPG public key. 100% client‑side, no server upload. In‑depth GnuPG fingerprint guide included.
A GPG fingerprint is a cryptographic hash (SHA‑1 for v4 keys, SHA‑256 for v5 keys) that uniquely identifies a GnuPG public key. It is the most reliable way to verify that a key belongs to a specific person or entity, much more reliable than a Key ID.
GPG follows the OpenPGP standard (RFC 4880). For a version 4 (v4) key (most common today):
For version 5 (v5) keys (introduced in RFC 4880bis, using SHA‑256), the process is similar, but the prefix changes to 0x9A, and the hash is 32 bytes (64 hex characters). Currently, v5 keys are rare; most keys are v4.
The GnuPG source code (g10/keyid.c) implements these algorithms exactly . This tool uses the same underlying method via OpenPGP.js, ensuring compatibility.
| Algorithm | Key size / curve | Security | Performance | GnuPG support |
|---|---|---|---|---|
| RSA | 2048‑4096 bits | High (2048 bits ~112‑bit security, 4096 ~128‑bit) | Slower (especially signing) | All versions |
| Ed25519 | 256 bits | Very high (∼128‑bit security, side‑channel resistant) | Very fast | GnuPG 2.1+ |
| ECDSA / ECDH | NIST P‑256, P‑384, P‑521 | High | Fast | Widely supported |
| DSA | 1024‑3072 bits | Legacy (≤1024 deprecated) | Slow | Discouraged |
Recommendation: For new keys, use Ed25519 (signing) + Curve25519 (encryption) – modern, fast, and secure . RSA 4096 is still a safe choice for broad compatibility.
gpg --fingerprint [email protected] displays the fingerprint.
gpg --import --import-options show-only --fingerprint public.key
gpg --list-keys and gpg --fingerprint.
OpenPGP fingerprints are resistant to preimage attacks – given a fingerprint, it‘s infeasible to create a key that hashes to that value. However, collision attacks on SHA‑1 (the hash used for v4 fingerprints) are theoretically possible but require massive computational resources. For extremely high‑security environments, consider moving to v5 keys (SHA‑256). Most users can rely on v4 fingerprints with confidence .
pub rsa4096 2023-01-01 [SC]
1234 5678 90AB CDEF 1234 5678 90AB CDEF 1234 5678
uid [ultimate] Alice <[email protected]>
sub rsa4096 2023-01-01 [E]
The long hex string is the full 40‑character fingerprint, grouped in blocks of four for readability .
gpg --full-generate-key.
This guide contains over 1500 words of in‑depth information to help you master GPG key fingerprints.
gpg --fingerprint [email protected] – show fingerprintgpg --list-keys --fingerprint – all keys with fingerprintsgpg --export --armor [email protected] > pub.asc – export public keygpg --import pub.asc – import a keygpg --keyserver keys.openpgp.org --send-keys KEYID – publish