Hello, you are using an old browser that's unsafe and no longer supported. Please consider updating your browser to a newer version, or downloading a modern browser.
Training Camp • Cybersecurity Glossary
A short cryptographic hash of a public key used to verify it quickly, e.g., confirming an SSH host key or PGP key without comparing the full key.
Public Key Fingerprint Definition: A short cryptographic hash of a public key used to verify it quickly, e.g., confirming an SSH host key or PGP key without comparing the full key.
A public key fingerprint is a short, fixed-length string produced by applying a cryptographic hash function to a public key. It serves as a compact, human-comparable identifier for a key that may be hundreds or thousands of bits long, letting users verify a key's authenticity without inspecting the entire key.
The fingerprint is generated by hashing the encoded public key with an algorithm such as SHA-256 (older systems used SHA-1 or MD5, now considered weak), then displaying the digest in hexadecimal or base64. Because a secure hash is deterministic and collision-resistant, the same key always yields the same fingerprint, and it is computationally infeasible to craft a different key with a matching fingerprint. This makes the short string a reliable proxy for the full key during verification.
This matters because verifying public keys is the foundation of trust in asymmetric cryptography. If an attacker can substitute their own public key for a legitimate one, they can mount a man-in-the-middle attack and decrypt or forge communications. Comparing fingerprints out-of-band, such as reading them aloud or checking them against a trusted source, lets users detect such substitution. Weak hash algorithms undermine this guarantee, which is why modern tools default to SHA-256.
For example, the first time a user connects to a server over SSH, the client displays the host key fingerprint and asks whether to trust it. A careful administrator compares that fingerprint against the value documented when the server was provisioned. If they match, the connection is genuine; if they differ, it may signal a man-in-the-middle attack or a changed host. The same principle applies in PGP, where users verify a correspondent's key fingerprint before trusting it to encrypt sensitive messages.
Public Key Fingerprint is one of the topics you'll master in the Security+ Boot Camp.
Security+ Boot Camp →