← Back to section · Foundations of Cryptography

Signatures vs. Encryption: Two Things Pointing in Opposite Directions

「Encrypt with the private key, decrypt with the public key」 is one of the most widespread misconceptions. Signatures and encryption are opposites in goal, key flow, and security definition: encryption protects confidentiality and anyone may encrypt; signatures provide authenticity and only the key holder may sign. This article compares them point by point and explains the composition trap of sign-then-encrypt.

Published 22 November 2026 · 5 min read · PQ Frontier

Signatures vs. Encryption: Two Things Pointing in Opposite Directions
AI-generated site artwork
Video explainer · Asymmetric encryption: public and private keys

In popular accounts of public-key cryptography, a signature is often explained as 「encrypting with the private key and decrypting with the public key」 — encryption done backwards. The phrase has a slight surface resemblance to the algebraic form of textbook RSA, but it is conceptually wrong through and through, and it leads people to genuine security misjudgements. Signatures and encryption are two different things, with different goals, different structures, and even different security definitions.

Opposite Goals: Hiding vs. Showing

Encryption solves the problem of confidentiality: a piece of data is locked away so that nobody but the designated receiver can read it. Its direction is therefore 「anyone may lock, only the key holder may open」 — the public key is published to the world for encrypting, the private key kept strictly secret for decrypting. The attacker wins by reading any information about the plaintext.

Signatures solve an entirely different problem: authenticity and non-repudiation. A document may be shown to everyone; the signature must guarantee that 「it genuinely comes from the claimed author and has not been altered by a single character」, and afterwards the author cannot deny it. The direction is exactly reversed: 「only the key holder may sign, anyone may verify」 — the private key produces signatures, the public key is published to the world for verification. The attacker wins by forging a signature that verifies. The two even use 「who uses which key for what」 as mirror images; calling a signature 「encryption done backwards」 conflates a lock with a seal: a lock hides things away, a seal displays identity.

Opposite Structures: Modern Signatures Are Not 「Encryption in Reverse」 at All

The bare form of RSA signing (applying the private exponent to a message hash) looks algebraically like RSA decryption, which is the source of the misconception. But no modern signature scheme is built that way: ECDSA and EdDSA signatures are combinations of random nonces, hashes, and group operations, and verification recovers no 「encrypted thing」; post-quantum signatures such as ML-DSA and SLH-DSA are built on lattices and hashes, with no formal kinship to encryption constructions at all. The general structure of a signature is 「producing publicly verifiable evidence about a message (or its hash)」; the verification algorithm outputs only true or false and disgorges no hidden data — the exact opposite of 「decryption」.

The security definitions differ accordingly. The gold standard for signatures is EUF-CMA: existential unforgeability — the attacker may obtain signatures on messages of his choosing, yet still cannot forge a valid signature on any new message. Note that this standard allows the attacker to collect many genuine signature samples while the defence must still hold; in the IND definitions for encryption, by contrast, the attacker must not obtain any information about a target plaintext at all. One defends against 「forgery」, the other against 「eavesdropping」 — different yardsticks entirely.

One more asymmetry is easily missed: transferability. A signature is inherently transferable evidence — anyone who receives a message and its signature can verify it themselves and pass it on for others to verify; the signer cannot control where verification happens. This is precisely the property on which contracts, certificates, and code signing rely. Encryption is the opposite: decryption capability is locked in the single private-key holder and cannot be 「shown」 to a third party without surrendering the key. When you need 「to prove to an auditor what I received」, the tool is a signature; when you need 「only one person can read this」, the tool is encryption — choose the wrong one, and no amount of later patching will make it right.

The Real Cost of the Misconception: What Goes Wrong When Signatures Are Used as Encryption

The 「private-key encryption, public-key decryption」 misconception is not merely imprecise; it has produced concrete design errors in practice. First, using signatures as a substitute for confidentiality: believing that data 「processed with the private key」 can be read only by public-key holders, someone signs sensitive data and sends it off — but the public key is public, so anyone can verify and read the original text; confidentiality is nil. Second, key reuse across purposes: using one key pair for both decryption and signing welds two security domains together — attacks against signing (such as inducing signatures on attacker-chosen content) can be converted into exploitation of decryption capability, and vice versa; the KeyUsage extension in certificate systems exists precisely to isolate such mixing, and compliant systems issue separate certificates for signing and for encryption. Third, misreading non-repudiation: a signature binds 「some private-key holder signed this」, not 「some natural person agreed to the content」 — when a private key is stolen, coerced, or operated by malware, cryptography is powerless, and disputes over denial ultimately rest on the evidence chain of key custody. Distinguishing signatures from encryption avoids these three classes of error at the very first step of system design.

The Composition Trap: Signature Plus Encryption Is Not Secure Delivery

Real systems often need both signing and encryption: prove the origin, and let no bystander read the content. The naive composition 「sign first, then encrypt the signature together with the message」 has a classic flaw called surreptitious forwarding: receiver B, upon receiving a file signed and encrypted by A, can decrypt it, keep A’s signature, re-encrypt it under C’s public key, and forward it to C — where the content, signed by A, now looks as if A had written it directly for C; the context has been quietly swapped. The reverse order, 「encrypt-then-sign」, has its own problem: anyone can strip off the outer signature and replace it with their own, 「signing」 the encrypted content as if it were theirs.

The fix is not to memorize an order but to bind the context: include the recipient’s identity, purpose, and time in the signed content, or fold the sender’s identity into the encryption’s associated data, so that both the signature and the ciphertext state clearly 「for whom, and for what」. The handshake signatures of mature protocols such as TLS and Signal, without exception, sign a transcript hash that includes both parties’ identities and the session parameters — composing signatures with encryption is never assembling building blocks; it is a fresh act of protocol design. Only when this is understood have the two things truly been told apart.

Tags: Digital SignaturesPublic-Key EncryptionAuthenticityNon-Repudiation