Kerckhoffs's Principle
Also known as: Kerckhoffs's assumption, Kerckhoffs's law, Shannon's maxim
Cryptographic design principle stating that a system should remain secure even if everything about it except the secret key is public knowledge.
Kerckhoffs's principle states that an encryption system should be secure even if an adversary knows exactly how it works, provided the key remains secret. Security should rest on a small, easily changed secret rather than on hiding the design of the algorithm or machine. If a key is compromised it can be replaced, whereas a secret algorithm, once discovered or reverse-engineered, compromises every message protected with it and may be costly to redesign and redeploy.
The principle is named after Auguste Kerckhoffs, a Dutch-born linguist and cryptographer who set out six requirements for military ciphers in essays titled "La cryptographie militaire", published in 1883. The second requirement held that the system must not require secrecy and could fall into enemy hands without inconvenience. Claude Shannon later restated the idea as the assumption that the enemy knows the system, a formulation known as Shannon's maxim. It is one of the foundations of cryptography as an open, scientific discipline.
In practice, the principle explains why widely trusted algorithms such as AES and those used in TLS are published openly and studied by researchers worldwide: public scrutiny finds weaknesses before attackers exploit them, and confidence grows as designs survive analysis. Proprietary ciphers kept secret have repeatedly been broken once reverse-engineered, as happened with the CSS scheme used on DVDs. The principle is often contrasted with security through obscurity, and it underpins the view that public, reviewable code can be more trustworthy than hidden code, in line with Linus's law.
Key points
- A cryptosystem should stay secure even if attackers know everything about it except the key.
- Auguste Kerckhoffs stated the principle in 1883 among six requirements for military ciphers.
- Claude Shannon restated it as the assumption that the enemy knows the system.
- Openly published, publicly analyzed algorithms such as AES reflect the principle in practice.
Related entries
Security Through Obscurity
Reliance on keeping a system's design, implementation or configuration secret as the main means of protecting it, widely regarded as weak on its own.
Encryption
The process of transforming readable data into ciphertext so that only parties holding the correct key can recover and understand it.
Claude Shannon
American mathematician and engineer who founded information theory and showed that Boolean logic could be implemented in electrical circuits.
Public-Key Cryptography
Cryptographic system that uses pairs of linked keys, one public and one private, to enable encryption and digital signatures between strangers.
Open Source
Approach to software in which source code is published under a license that lets anyone inspect, modify and redistribute it.
Linus's Law
Principle, named after Linus Torvalds, that with enough reviewers and testers almost every software bug will be found quickly and easily fixed.
Cryptographic Hash Function
Function that maps data of any size to a fixed-length digest in a way that is practically impossible to reverse or to match with different input.
Bruce Schneier
American cryptographer and security technologist known for "Applied Cryptography", the Blowfish and Twofish ciphers and writing on security and society.
Featured in guides
Referenced by
Other entries that discuss or point to Kerckhoffs's Principle.