<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Akassharjun Shanmugarajah on Medium]]></title>
        <description><![CDATA[Stories by Akassharjun Shanmugarajah on Medium]]></description>
        <link>https://medium.com/@akassharjun?source=rss-c86846c19568------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HcRPDyGBQlmpCVNPRB4JOw.jpeg</url>
            <title>Stories by Akassharjun Shanmugarajah on Medium</title>
            <link>https://medium.com/@akassharjun?source=rss-c86846c19568------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:18:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akassharjun/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Amazing article!]]></title>
            <link>https://medium.com/@akassharjun/amazing-article-7faba700f269?source=rss-c86846c19568------2</link>
            <guid isPermaLink="false">https://medium.com/p/7faba700f269</guid>
            <dc:creator><![CDATA[Akassharjun Shanmugarajah]]></dc:creator>
            <pubDate>Tue, 07 Sep 2021 13:53:55 GMT</pubDate>
            <atom:updated>2021-09-07T13:53:55.255Z</atom:updated>
            <content:encoded><![CDATA[<p>Amazing article!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7faba700f269" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does the RSA Algorithm work?]]></title>
            <link>https://medium.com/@akassharjun/how-does-the-rsa-algorithm-work-bd8275cd98b9?source=rss-c86846c19568------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd8275cd98b9</guid>
            <category><![CDATA[cryptosystem]]></category>
            <category><![CDATA[rsa-algorithm]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[rsa]]></category>
            <dc:creator><![CDATA[Akassharjun Shanmugarajah]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 08:02:03 GMT</pubDate>
            <atom:updated>2020-04-04T08:02:03.312Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1YwxxZVlNEUq5CVhFcT_g.jpeg" /><figcaption><strong>Creator: </strong>Andriy Onufriyenko</figcaption></figure><p>The RSA cryptosystem is one of the earliest cryptography systems to exist. The system was developed by three researchers <strong>Ron Rivest, Adi Shamir,</strong> and <strong>Len Adleman</strong> and therefore, it is known as the RSA cryptosystem.</p><p>The RSA algorithm uses two different keys — a public key &amp; a private key. As the names of the key describe, the pubic key is exposed to everyone and the private key is kept private. In this blog, we are going to take a closer look at how the public key &amp; private key are generated.</p><p>The public key is denoted as P(e, n) &amp; the private key is denoted as P(d, n). We will look at what these letters mean afterward.</p><h4><strong>Generate the RSA modulus (n)</strong></h4><ol><li>Select two large prime numbers, p &amp; q.</li><li>Calculate the RSA modulus (n) such that n = p * q</li></ol><blockquote>For solid unbreakable encryption, let n be an enormous number, regularly at least 512 bits.</blockquote><p>For this example, let’s take p as 13 and q as 17. Therefore n = 13* 17 = 221.</p><h4>Using Euler’s totient function c<strong>alculate Φ(n)</strong></h4><blockquote>The equation, Φ(n) = (p - 1) * (q — 1)</blockquote><p>If we substitute the values from above we get Φ(n) = (13 -1) * (17–1) = 192</p><h4>Find the derived number (e)</h4><ul><li>There must be no basic factor for e and (p − 1)(q − 1) aside for 1.</li><li>Basically the two numbers e &amp; (p − 1)(q − 1) should be coprime.</li></ul><h4><em>Using the Euclidean division algorithm calculate the multiplicative inverse of e modulo (d)</em></h4><blockquote>d is such that ed = 1 mod (p − 1)(q − 1)</blockquote><h4>That’s it!</h4><blockquote>Public Key is denoted as (n, e) &amp; Private Key is denoted as (n, d)</blockquote><p>This is how the RSA algorithm works, keep in mind that the actual values used are much larger and that there’s tons of optimization done.</p><p>This was a research done for <a href="https://www.facebook.com/MIITARCSLABS/?eid=ARCoTMQcdBmLhxebxgL4NHthpKVyz7GCzPfSubxTfps5nY_HthjSBxs55RvjNIETyQlyqm1zcpFdmZEx">MIIT ARC</a>. You can find the python code for this over at <a href="https://github.com/akassharjun/basic-rsa-algorithm">GitHub</a>.</p><h3>Citations</h3><ul><li><a href="https://www.geeksforgeeks.org/rsa-algorithm-cryptography/">RSA Algorithm in Cryptography - GeeksforGeeks</a></li><li><a href="https://searchsecurity.techtarget.com/definition/RSA">What is RSA algorithm (Rivest-Shamir-Adleman)? - Definition from WhatIs.com</a></li><li><a href="https://www.tutorialspoint.com/cryptography/public_key_encryption.htm">Public Key Encryption</a></li></ul><p><a href="http://mathonline.wikidot.com/rsa-encryption">http://mathonline.wikidot.com/rsa-encryption</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd8275cd98b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>