Code-based cryptography
Code-based cryptography uses computational problems associated with error-correcting codes to build security schemes. It is a family of classical cryptographic methods studied for resistance to quantum attacks.
On this page
Plain-language explanation
Error-correcting code problems can be used to build classical cryptographic schemes. The goal is to create an instance that is easy to use with the private key but difficult for an adversary under the scheme’s assumptions. In 2025 NIST selected HQC, a code-based KEM, for development as a backup to its first post-quantum KEM. A selection announcement is separate from the publication of a finished standard.
This prevents a frequent vocabulary mix-up: codes used to secure classical messages are not the same thing as codes used to make a quantum computer reliable.
Example
A receiver may possess private structure that makes a decoding-related task manageable, while a public description is intended not to reveal enough for an attacker. That conceptual asymmetry supports the cryptographic design; its security depends on the exact construction and parameters.
Scope and limits
Code-based does not mean every error-correcting code produces secure cryptography. Use current standards and program status for claims about which specific algorithms are approved or selected.
Quantum error correction is a related idea. Quantum error correction protects quantum information from noise. Code-based cryptography uses coding-related hardness assumptions to protect classical information against adversaries.
Sources
Verification scope
Recorded source check ·
PQC purpose and standardization context
Recheck program status before publishing time-sensitive claims
Verification scope
Recorded source check ·
Migration and discovery concepts
Implementation guidance evolves
Verification scope
Citation identity checked ·
This check establishes the source title and link. Scientific claim review is separate.