Commit 5de9da79 authored by John's avatar John

Site updated: 2018-11-06 19:49:41

parent b89ca5ee
...@@ -440,16 +440,16 @@ https://docs.gitlab.com/ee/user/project/pipelines/job_artifacts.html ...@@ -440,16 +440,16 @@ https://docs.gitlab.com/ee/user/project/pipelines/job_artifacts.html
</article> </article>
<section class="related-posts"> <section class="related-posts">
<h3>Related posts</h3> <h3>Related posts</h3>
<div class="related-posts__item__wrapper">
<a class="related-posts__item" href="/posts/table-based-design/">
<div class="related-posts__item__background" style="background-image:url('/images/tableCode.jpg');"></div>
<div class="related-posts__item__overlay"></div><span class="related-posts__item__title">Table based design: Why I loathe it, and you should too!</span></a>
</div>
<div class="related-posts__item__wrapper"> <div class="related-posts__item__wrapper">
<a class="related-posts__item" href="/posts/static-what-generator/"> <a class="related-posts__item" href="/posts/static-what-generator/">
<div class="related-posts__item__background" style="background-image:url('/images/default.jpg');"></div> <div class="related-posts__item__background" style="background-image:url('/images/default.jpg');"></div>
<div class="related-posts__item__overlay"></div><span class="related-posts__item__title">Static what Generator?!</span></a> <div class="related-posts__item__overlay"></div><span class="related-posts__item__title">Static what Generator?!</span></a>
</div> </div>
<div class="related-posts__item__wrapper">
<a class="related-posts__item" href="/posts/table-based-design/">
<div class="related-posts__item__background" style="background-image:url('/images/tableCode.jpg');"></div>
<div class="related-posts__item__overlay"></div><span class="related-posts__item__title">Table based design: Why I loathe it, and you should too!</span></a>
</div>
</section> </section>
</div> </div>
</div> </div>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<meta property="og:description" content="When “pretty good” is good enough PGP stands for “Pretty Good Privacy”. It’s a set of algorithms for encrypting, compressing, and signing…"> <meta property="og:description" content="When “pretty good” is good enough PGP stands for “Pretty Good Privacy”. It’s a set of algorithms for encrypting, compressing, and signing…">
<meta property="og:locale" content="en"> <meta property="og:locale" content="en">
<meta property="og:image" content="http://blog.thebestjohn.com/images/sonoff/sonoff.jpg"> <meta property="og:image" content="http://blog.thebestjohn.com/images/sonoff/sonoff.jpg">
<meta property="og:updated_time" content="2018-11-06T18:49:44.368Z"> <meta property="og:updated_time" content="2018-11-06T19:48:34.405Z">
<meta name="twitter:card" content="summary"> <meta name="twitter:card" content="summary">
<meta name="twitter:title" content="You down with PGP? Yeah you know me!"> <meta name="twitter:title" content="You down with PGP? Yeah you know me!">
<meta name="twitter:description" content="When “pretty good” is good enough PGP stands for “Pretty Good Privacy”. It’s a set of algorithms for encrypting, compressing, and signing…"> <meta name="twitter:description" content="When “pretty good” is good enough PGP stands for “Pretty Good Privacy”. It’s a set of algorithms for encrypting, compressing, and signing…">
...@@ -329,6 +329,152 @@ ...@@ -329,6 +329,152 @@
<h3 id="Decrypting"><a href="#Decrypting" class="headerlink" title="Decrypting"></a>Decrypting</h3> <h3 id="Decrypting"><a href="#Decrypting" class="headerlink" title="Decrypting"></a>Decrypting</h3>
<p>So Bob sends his message to Alice via carrier pigeon. Eve has a fleet of pigeon intercepting hawks who grab Bob’s pigeon so Eve can copy down the message and send them on their way. Upon arriving, the pigeon tells Alice its harrowing tale. <p>So Bob sends his message to Alice via carrier pigeon. Eve has a fleet of pigeon intercepting hawks who grab Bob’s pigeon so Eve can copy down the message and send them on their way. Upon arriving, the pigeon tells Alice its harrowing tale.
Unfortunately, Alice doesn’t understand the pigeon’s regional dialect but even if she did, she would not be concerned that the message’s contents were compromised. </p> Unfortunately, Alice doesn’t understand the pigeon’s regional dialect but even if she did, she would not be concerned that the message’s contents were compromised. </p>
<p>To decrypt, Alice needs to take the secret Cipher, and subtract her secret key from it using the same modulus method (subtracting the remainder from 10) so <code>3 - 9 = -2</code> which would mean <code>10 - 2 = 8</code></p>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center">Key</th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center"><strong>Cipher</strong></td>
<td style="text-align:center">0913</td>
<td style="text-align:center">1440</td>
<td style="text-align:center">2112</td>
<td style="text-align:center">1132</td>
<td style="text-align:center">0747</td>
<td style="text-align:center">1407</td>
<td style="text-align:center">1414</td>
<td style="text-align:center">1927</td>
<td style="text-align:center">3626</td>
<td style="text-align:center">3902</td>
<td style="text-align:center">2029</td>
</tr>
<tr>
<td style="text-align:center"><strong>One-time</strong></td>
<td style="text-align:center">0913</td>
<td style="text-align:center">1520</td>
<td style="text-align:center">2313</td>
<td style="text-align:center">0721</td>
<td style="text-align:center">0225</td>
<td style="text-align:center">1908</td>
<td style="text-align:center">0502</td>
<td style="text-align:center">1018</td>
<td style="text-align:center">1621</td>
<td style="text-align:center">2503</td>
<td style="text-align:center">1622</td>
</tr>
<tr>
<td style="text-align:center"><strong>Decode</strong></td>
<td style="text-align:center"></td>
<td style="text-align:center">0920</td>
<td style="text-align:center">0809</td>
<td style="text-align:center">1411</td>
<td style="text-align:center">0522</td>
<td style="text-align:center">0509</td>
<td style="text-align:center">1912</td>
<td style="text-align:center">0919</td>
<td style="text-align:center">2005</td>
<td style="text-align:center">1409</td>
<td style="text-align:center">1407</td>
</tr>
<tr>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center">IT</td>
<td style="text-align:center">HI</td>
<td style="text-align:center">NK</td>
<td style="text-align:center">EV</td>
<td style="text-align:center">EI</td>
<td style="text-align:center">SL</td>
<td style="text-align:center">IS</td>
<td style="text-align:center">TE</td>
<td style="text-align:center">NI</td>
<td style="text-align:center">NG</td>
</tr>
</tbody>
</table>
<blockquote>
<p>ITHINKEVEISLISTENING</p>
</blockquote>
<p>The pigeon reads the message and nods in agreement. Seeing this, Alice burns her scratch pad and the One-time pad. Eve can now never know what the message said.</p>
<p>As an exercise, and to demonstrate why this is such a strong encryption method, try decoding the previous cipher using the One-time pad of this:</p>
<p>0913 0835 1017 0827 9348 0594 9918 1805 2118 3082 2503</p>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center">Key</th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center"><strong>Cipher</strong></td>
<td style="text-align:center">0913</td>
<td style="text-align:center">1440</td>
<td style="text-align:center">2112</td>
<td style="text-align:center">1132</td>
<td style="text-align:center">0747</td>
<td style="text-align:center">1407</td>
<td style="text-align:center">1414</td>
<td style="text-align:center">1927</td>
<td style="text-align:center">3626</td>
<td style="text-align:center">3902</td>
<td style="text-align:center">2029</td>
</tr>
<tr>
<td style="text-align:center"><strong>One-time</strong></td>
<td style="text-align:center">0913</td>
<td style="text-align:center">0835</td>
<td style="text-align:center">1017</td>
<td style="text-align:center">0827</td>
<td style="text-align:center">9348</td>
<td style="text-align:center">0594</td>
<td style="text-align:center">9918</td>
<td style="text-align:center">1805</td>
<td style="text-align:center">2118</td>
<td style="text-align:center">3082</td>
<td style="text-align:center">2503</td>
</tr>
<tr>
<td style="text-align:center"><strong>Decode</strong></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
</tr>
</tbody>
</table>
<p>You’ll notice the cipher is the same. It’s the same thing Eve has, but the message is different! It would have been nice to work out a message that could fit our conversion table nicely but remember that our attacker doesn’t know that either
and therefore would have to assume that on the conversion table, there are numbers that go up to 93 and so on. Often time codebooks use numbers like this as well.</p>
<h2 id="Circling-back-to-GPG"><a href="#Circling-back-to-GPG" class="headerlink" title="Circling back to GPG"></a>Circling back to <abbr title="GNU Privacy Guard">GPG</abbr></h2> <h2 id="Circling-back-to-GPG"><a href="#Circling-back-to-GPG" class="headerlink" title="Circling back to GPG"></a>Circling back to <abbr title="GNU Privacy Guard">GPG</abbr></h2>
<p>Luckily though, I’ve found this </p> <p>Luckily though, I’ve found this </p>
<p><img src="/images/gpg/image.jpg" alt="Image alt text"></p> <p><img src="/images/gpg/image.jpg" alt="Image alt text"></p>
...@@ -370,7 +516,7 @@ ...@@ -370,7 +516,7 @@
})(); })();
</script><noscript>Enable JavaScript to see comments.</noscript> </script><noscript>Enable JavaScript to see comments.</noscript>
<!-- Meta Tags for Structured Data--> <!-- Meta Tags for Structured Data-->
<meta itemprop="dateModified" content="2018-11-06T18:49:44.368Z"> <meta itemprop="dateModified" content="2018-11-06T19:48:34.405Z">
<meta itemprop="articleBody" content="When “pretty good” is good enough <meta itemprop="articleBody" content="When “pretty good” is good enough
PGP stands for “Pretty Good Privacy”. It’s a set of algorithms for encrypting, compressing, and signing data so that a specific person can open and read that..."> PGP stands for “Pretty Good Privacy”. It’s a set of algorithms for encrypting, compressing, and signing data so that a specific person can open and read that...">
<meta itemprop="url" content="/posts/you-down-with-pgp-yeah-you-know-me/"> <meta itemprop="url" content="/posts/you-down-with-pgp-yeah-you-know-me/">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<url> <url>
<loc>http://blog.thebestjohn.com/posts/you-down-with-pgp-yeah-you-know-me/</loc> <loc>http://blog.thebestjohn.com/posts/you-down-with-pgp-yeah-you-know-me/</loc>
<lastmod>2018-11-06T18:49:44.368Z</lastmod> <lastmod>2018-11-06T19:48:34.405Z</lastmod>
</url> </url>
...@@ -30,49 +30,49 @@ ...@@ -30,49 +30,49 @@
</url> </url>
<url> <url>
<loc>http://blog.thebestjohn.com/posts/table-based-design/</loc> <loc>http://blog.thebestjohn.com/posts/static-what-generator/</loc>
<lastmod>2018-11-03T23:30:58.784Z</lastmod> <lastmod>2018-11-03T23:30:58.784Z</lastmod>
</url> </url>
<url> <url>
<loc>http://blog.thebestjohn.com/posts/static-what-generator/</loc> <loc>http://blog.thebestjohn.com/posts/table-based-design/</loc>
<lastmod>2018-11-03T23:30:58.784Z</lastmod> <lastmod>2018-11-03T23:30:58.784Z</lastmod>
</url> </url>
<url> <url>
<loc>http://blog.thebestjohn.com/posts/sonoff-micropython-wonderland/</loc> <loc>http://blog.thebestjohn.com/posts/the-plasma-speaker-saga-pt-iii/</loc>
<lastmod>2018-11-03T23:30:58.784Z</lastmod> <lastmod>2018-11-03T23:30:58.784Z</lastmod>
</url> </url>
<url> <url>
<loc>http://blog.thebestjohn.com/posts/the-plasma-speaker-saga-pt-iii/</loc> <loc>http://blog.thebestjohn.com/posts/sonoff-micropython-wonderland/</loc>
<lastmod>2018-11-03T23:30:58.784Z</lastmod> <lastmod>2018-11-03T23:30:58.784Z</lastmod>
</url> </url>
<url> <url>
<loc>http://blog.thebestjohn.com/posts/matrix-keypad/</loc> <loc>http://blog.thebestjohn.com/posts/setting-up-hexo-auto-deploy-from-gitlab/</loc>
<lastmod>2018-11-03T23:30:58.784Z</lastmod> <lastmod>2018-11-03T23:30:58.784Z</lastmod>
</url> </url>
<url> <url>
<loc>http://blog.thebestjohn.com/posts/setting-up-hexo-auto-deploy-from-gitlab/</loc> <loc>http://blog.thebestjohn.com/about/index.html</loc>
<lastmod>2018-11-03T23:30:58.784Z</lastmod> <lastmod>2018-11-03T23:30:58.784Z</lastmod>
</url> </url>
<url> <url>
<loc>http://blog.thebestjohn.com/about/index.html</loc> <loc>http://blog.thebestjohn.com/posts/matrix-keypad/</loc>
<lastmod>2018-11-03T23:30:58.784Z</lastmod> <lastmod>2018-11-03T23:30:58.784Z</lastmod>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment