<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kerckhoffs's Principle on kenji.blog</title><link>http://kenji.blog/en/tags/kerckhoffss-principle/</link><description>Recent content in Kerckhoffs's Principle on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>kenjinote</copyright><lastBuildDate>Wed, 16 Apr 2025 23:53:08 +0900</lastBuildDate><atom:link href="http://kenji.blog/en/tags/kerckhoffss-principle/index.xml" rel="self" type="application/rss+xml"/><item><title>Kerckhoffs's Principle</title><link>http://kenji.blog/en/p/%E3%82%B1%E3%83%AB%E3%82%AF%E3%83%9B%E3%83%95%E3%82%B9%E3%81%AE%E5%8E%9F%E7%90%86/</link><pubDate>Wed, 16 Apr 2025 23:53:08 +0900</pubDate><guid>http://kenji.blog/en/p/%E3%82%B1%E3%83%AB%E3%82%AF%E3%83%9B%E3%83%95%E3%82%B9%E3%81%AE%E5%8E%9F%E7%90%86/</guid><description>&lt;img src="http://kenji.blog/p/%E3%82%B1%E3%83%AB%E3%82%AF%E3%83%9B%E3%83%95%E3%82%B9%E3%81%AE%E5%8E%9F%E7%90%86/img_2.png" alt="Featured image of post Kerckhoffs's Principle" />&lt;h1 id="kerckhoffss-principle">Kerckhoffs&amp;rsquo;s Principle
&lt;/h1>&lt;hr>
&lt;p>Hello!&lt;/p>
&lt;p>Today, I’d like to talk about something a bit interesting and actually incredibly important called &amp;ldquo;Kerckhoffs&amp;rsquo;s Principle&amp;rdquo;.&lt;/p>
&lt;p>Ah, wait, wait.
Some of you might be thinking, &amp;ldquo;I&amp;rsquo;ve never heard of &amp;lsquo;Kerckhoffs&amp;rsquo;s Principle,&amp;rsquo; and there are already too many katakana words&amp;hellip;&amp;rdquo; Don&amp;rsquo;t worry. This article is exactly for you.&lt;/p>
&lt;hr>
&lt;h2 id="what-does-secure-cryptography-mean">What does &amp;ldquo;Secure Cryptography&amp;rdquo; mean?
&lt;/h2>&lt;p>For example, imagine someone telling you, &amp;ldquo;This safe can only be opened by someone who knows the secret way to open it.&amp;rdquo;&lt;/p>
&lt;p>At first glance, that sounds very secure, right?
But if you think about it closely, isn&amp;rsquo;t it a bit unsettling?&lt;/p>
&lt;p>Like, &amp;ldquo;If that secret leaks, isn&amp;rsquo;t it all over?&amp;rdquo;&lt;/p>
&lt;p>Actually, this is exactly why Kerckhoffs&amp;rsquo;s Principle comes into play.&lt;/p>
&lt;hr>
&lt;h2 id="what-exactly-is-kerckhoffss-principle">What exactly is &amp;ldquo;Kerckhoffs&amp;rsquo;s Principle&amp;rdquo;?
&lt;/h2>&lt;p>To put it very simply, it&amp;rsquo;s the idea that:&lt;/p>
&lt;p>&lt;strong>&amp;ldquo;A cryptographic system should be secure even if its inner workings become public knowledge.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>In other words, &amp;ldquo;Security should rely solely on the &amp;lsquo;secret key&amp;rsquo;, and it&amp;rsquo;s perfectly fine for the encryption method itself to be public!&amp;rdquo;&lt;/p>
&lt;p>Conversely, &amp;ldquo;A system that only relies on keeping the cryptographic algorithm (mechanism) a secret is considered to have low reliability.&amp;rdquo;&lt;/p>
&lt;hr>
&lt;h2 id="its-safe-because-the-mechanism-is-a-secret-might-be-a-bit-dangerous">&amp;ldquo;It&amp;rsquo;s safe because the mechanism is a secret&amp;rdquo; might be a bit dangerous
&lt;/h2>&lt;p>A common line of thought goes like this:&lt;/p>
&lt;blockquote>
&lt;p>&amp;ldquo;Nobody has seen the inside of this app, so the security is fine.&amp;rdquo;&lt;/p>
&lt;/blockquote>
&lt;p>I understand the sentiment.
But that&amp;rsquo;s basically the same as saying, &amp;ldquo;Nobody is looking, so nobody will find any flaws, so it must be fine.&amp;rdquo;&lt;/p>
&lt;p>In reality, the very fact that &amp;ldquo;nobody is looking&amp;rdquo; can become a risk in itself.&lt;/p>
&lt;hr>
&lt;h2 id="but-why-is-this-principle-so-important">But why is this principle so important?
&lt;/h2>&lt;p>The reason is, if someone manages to get their hands on the mechanism and can easily decrypt it, that encryption is compromised.&lt;/p>
&lt;p>To use an analogy, it&amp;rsquo;s like a door lock built with a super complex mechanism, but which can actually be opened with a spare key made at a dollar store.&lt;/p>
&lt;p>It&amp;rsquo;s not &amp;ldquo;It&amp;rsquo;s safe because the key is secret&amp;rdquo;, but rather &amp;ldquo;Even if you show the entire mechanism, it can&amp;rsquo;t be opened without the proper key&amp;rdquo; that is important.&lt;/p>
&lt;hr>
&lt;h2 id="the-feeling-of-but-isnt-that-kinda-scary">The feeling of &amp;ldquo;But isn&amp;rsquo;t that kinda scary?&amp;rdquo;
&lt;/h2>&lt;p>This is where many people feel:&lt;/p>
&lt;blockquote>
&lt;p>&amp;ldquo;Isn&amp;rsquo;t it kind of scary to expose the whole mechanism?&amp;rdquo;&lt;/p>
&lt;/blockquote>
&lt;p>I get it.
You can&amp;rsquo;t help but think, &amp;ldquo;If I show everything inside, won&amp;rsquo;t it be copied or misused?&amp;rdquo;&lt;/p>
&lt;p>But that is exactly the core of Kerckhoffs&amp;rsquo;s Principle.
The true security is the &amp;ldquo;strength that doesn&amp;rsquo;t collapse even if you show the inside&amp;rdquo;.&lt;/p>
&lt;hr>
&lt;h2 id="that-being-said-it-takes-a-little-courage-at-first">That being said, it takes a little courage at first
&lt;/h2>&lt;p>Putting yourself in the shoes of a developer, &amp;ldquo;Making the mechanism public = exposing weaknesses&amp;rdquo;, so of course, it&amp;rsquo;s nerve-wracking.&lt;/p>
&lt;p>But think about it.&lt;/p>
&lt;p>Something that says &amp;ldquo;Anyone is welcome to verify it&amp;rdquo; while properly showing the mechanism will ultimately be trusted more.&lt;/p>
&lt;p>It&amp;rsquo;s a lot like human relationships, isn&amp;rsquo;t it?&lt;/p>
&lt;p>&amp;ldquo;Someone who gets along with you after you&amp;rsquo;ve shown your true self&amp;rdquo; is, after all, the most comforting.&lt;/p>
&lt;hr>
&lt;h2 id="so">So
&lt;/h2>&lt;p>Kerckhoffs&amp;rsquo;s Principle might sound a bit theoretical, but its essence is very simple.&lt;/p>
&lt;p>It&amp;rsquo;s just about: &lt;strong>&amp;ldquo;Let&amp;rsquo;s build a mechanism that won&amp;rsquo;t break no matter who sees it.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Proper design over superficial secrets.
Code you aren&amp;rsquo;t ashamed to show, rather than code you want to hide from everyone.&lt;/p>
&lt;p>Perhaps this kind of &amp;ldquo;strength&amp;rdquo; is what will be increasingly sought after in the coming era.&lt;/p>
&lt;hr>
&lt;p>Thank you for reading!&lt;/p>
&lt;p>Security topics can be a bit difficult, but there are parts that connect to &amp;ldquo;human relationships&amp;rdquo; and a &amp;ldquo;sense of everyday security.&amp;rdquo;
Without feeling pressured, learning about it little by little will surely bring something good.&lt;/p>
&lt;hr>
&lt;p>&lt;img src="http://kenji.blog/p/%E3%82%B1%E3%83%AB%E3%82%AF%E3%83%9B%E3%83%95%E3%82%B9%E3%81%AE%E5%8E%9F%E7%90%86/img.png"
width="189"
height="282"
srcset="http://kenji.blog/p/%E3%82%B1%E3%83%AB%E3%82%AF%E3%83%9B%E3%83%95%E3%82%B9%E3%81%AE%E5%8E%9F%E7%90%86/img_hu715032b7fe5224f655ebb7d29b676305_77325_480x0_resize_box_3.png 480w, http://kenji.blog/p/%E3%82%B1%E3%83%AB%E3%82%AF%E3%83%9B%E3%83%95%E3%82%B9%E3%81%AE%E5%8E%9F%E7%90%86/img_hu715032b7fe5224f655ebb7d29b676305_77325_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Auguste Kerckhoffs"
class="gallery-image"
data-flex-grow="67"
data-flex-basis="160px"
>&lt;/p></description></item></channel></rss>