Skip to content

What it is

A signature is a cryptographic proof that the holder of a specific key approved a specific piece of data, verifiable by anyone with the matching public key.

A digital signature is the cryptographic equivalent of a handwritten signature: it binds a specific identity (represented by a key pair) to a specific piece of data, in a way that any third party can verify without trusting the verifier. The signer holds a private key, and produces a signature over the data. Anyone who has the corresponding public key can verify that the signature was created by the private key over exactly that data, and nothing else. If a single bit of the data changes, the signature fails. If the signature is replayed against different data, it fails. The binding is total.

A signature is not encryption. Encryption hides data; signatures authenticate it. A signature does not conceal the message; it proves who produced it. The two operations are built from the same underlying primitives (public-key cryptography) but they solve different problems, and mixing them up is a common and dangerous mistake. Signing a message does not encrypt it; encrypting a message does not sign it. Every protocol that needs both (TLS, S/MIME, PGP) applies them as separate steps.