Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws

Kerckhoffs's Principle

also known as — Shannon's maxim
"A cipher should stay secure even if everything but the key is public."
In plain English

What does Kerckhoffs's Principle mean?

Kerckhoffs's principle holds that a cryptographic system should remain secure even if everything about it, except the key, is public knowledge. Security must rest on the secrecy of the key alone, never on the secrecy of the algorithm or design. It is the direct opposite of security through obscurity, and the reason modern cryptography publishes its algorithms and hides only its keys.

Reliability

Rated Empirical: grounded in studies or measurable evidence. The other 608.

Lineage
1883COINED
How it works

How does Kerckhoffs's Principle work?

Keys are small, changeable at will, and specific to each user, while an algorithm embedded in widely distributed hardware and software cannot be kept secret or changed once fielded. It will eventually be reverse-engineered. So resting security on the key, the one thing that can genuinely be protected and rotated, is the robust choice. Publishing the algorithm also invites open analysis: a design that survives repeated public attack earns justified confidence, whereas secrecy denies that evidence and hides flaws.

Where you'll see it

What are examples of Kerckhoffs's Principle?

Open standards The Advanced Encryption Standard was chosen through an open international competition and fully published, its security resting on the key and on years of public scrutiny.
Broken secret ciphers Ciphers whose security depended on a secret design, such as the GSM cipher A5/1 and the DVD scrambling system, were broken once reverse-engineered: the failure mode the principle warns against.
Shannon's maxim Claude Shannon restated the principle as the enemy knows the system, the compact form now widely quoted in cryptography.
Types & variants

What are the types of Kerckhoffs's Principle?

The open-competition model§

The NIST practice of selecting standards like the AES block cipher and the SHA-3 hash through public competitions with open analysis, institutionalising the principle.

Security through obscurity§

The rejected opposite, resting security on a secret algorithm: fragile because secrets leak, and unable to earn the confidence that public scrutiny provides.

Why it matters

Why does Kerckhoffs's Principle matter?

It is a foundational norm of modern cryptography, the reason algorithms are published and scrutinised while only keys are kept secret. It underlies the open-competition model by which standards are chosen and analysed in the open, and it explains a recurring lesson of security history: that ciphers relying on secret designs fall once those designs are exposed.

Working with it

How do you apply Kerckhoffs's Principle?

  • Rest security on the key — design so that security depends only on the secret key, assuming the algorithm and system are known to the adversary.
  • Publish and invite attack — prefer open, scrutinised algorithms over secret ones, since surviving public analysis is evidence of strength.
  • Do not lean on obscurity — treat hiding a design as at most a supplementary layer, never the basis of security.
Where it breaks down

What are the limits of Kerckhoffs's Principle?

The principle is a widely accepted norm and best practice, not a mathematical theorem, and it is occasionally debated at the margins in specific threat models. Obscurity can serve as a supplementary layer of defence in depth, but never as the sole basis of security. And resting all secrecy on the key raises the stakes of key management, which becomes the critical point of protection. It is a guideline for sound design rather than a guarantee that a given key-secret system is unbreakable.

What it doesn't say

What are common misconceptions about Kerckhoffs's Principle?

Obscurity does not have literally zero value: the principle says security must not depend on it, not that concealment can never add a minor layer. Kerckhoffs did not say the algorithm must be published; he said the system must remain secure even if it becomes public, a robustness requirement rather than a mandate to publish. And the crisp phrasing that the enemy knows the system is Shannon's, not Kerckhoffs's own.

Is it real?

Is Kerckhoffs's Principle real?

Yes, as far as the evidence goes. Kerckhoffs's Principle is rated Empirical here: it rests on studies or measurements rather than on a saying.

Rated from three sources. 609 of the 1,116 entries carry this rating. How the scale works.

36 of 69entries in software & systems carry the same rating

The best-known laws are the least likely to rest on measurement.

Origin

Where did Kerckhoffs's Principle come from?

Stated by the Dutch cryptographer Auguste Kerckhoffs in 'La Cryptographie Militaire' (Journal des sciences militaires, 1883) as one of six design rules for military ciphers, and restated by Claude Shannon in 1949 as the maxim that the enemy knows the system.

Known elsewhere as

What is Kerckhoffs's Principle called in other languages?

  • Arabicمبدأ كيركهوفس
  • GermanKerckhoffs’ Prinzip
  • Spanishprincipios de Kerckhoffs
  • Frenchprincipe de Kerckhoffs
  • Italianprincipio di Kerckhoffs
  • Japaneseケルクホフスの原理
  • PortuguesePrincípio de Kerckhoffs
  • RussianПринцип Керкгоффса
  • Chinese柯克霍夫原則

9 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.

Sources

Sources & further reading

  1. 1Kerckhoffs's principle, Wikipedia. — the key-secrecy statement, the six rules, the contrast with obscurity, and Shannon's maxim.secondary
  2. 2Petitcolas, scans and translation of Kerckhoffs's "La Cryptographie Militaire" (1883). — the original statement of the principle.primary
  3. 3The Cornerstone of Cybersecurity, NIST NCCoE. — the open-competition model for AES and SHA-3 that embodies the principle.secondary

Everything above traces to en.wikipedia.org, petitcolas.net and nccoe.nist.gov, three sources in all, one of them the original publication rather than an account of it. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.