<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Decrypt on DevLogs</title><link>https://blog.param.sh/tags/decrypt/</link><description>Recent content in Decrypt on DevLogs</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 18 Apr 2026 18:23:33 +0530</lastBuildDate><atom:link href="https://blog.param.sh/tags/decrypt/index.xml" rel="self" type="application/rss+xml"/><item><title>Refresher on Symmetric vs Asymmetric Encryption</title><link>https://blog.param.sh/posts/symmetric-vs-asymmetric-encryption/</link><pubDate>Sat, 18 Apr 2026 18:23:33 +0530</pubDate><guid>https://blog.param.sh/posts/symmetric-vs-asymmetric-encryption/</guid><description>&lt;p&gt;Before we jump into TLS, certificates, and all the “why is my browser yelling at me” stuff… we need to get one thing straight:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;How encryption actually works underneath?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There are &lt;strong&gt;two types of encryption&lt;/strong&gt; you’ll see everywhere:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Asymmetric&lt;/li&gt;
&lt;li&gt;Symmetric&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="symmetric-encryption-same-key-both-sides"&gt;
 Symmetric Encryption (Same Key, Both Sides)
 &lt;a class="heading-link" href="#symmetric-encryption-same-key-both-sides"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;This is the simpler one. This is where you and I share a secret key.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I encrypt using that key&lt;/li&gt;
&lt;li&gt;You decrypt using the same key&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Encrypt(message, key) -&amp;gt; ciphertext
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Decrypt(ciphertext, key) -&amp;gt; message
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It’s useful because it’s really fast—like, very fast—and that makes it great for handling large amounts of data without slowing things down. Also note that in context of this &lt;a href="https://blog.param.sh/series/encryption-in-transit" &gt;series&lt;/a&gt;, it typically is used after a connection has already been established.&lt;/p&gt;</description></item></channel></rss>