<?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 Deenank Sharma on Medium]]></title>
        <description><![CDATA[Stories by Deenank Sharma on Medium]]></description>
        <link>https://medium.com/@sharmadeenank?source=rss-7e6ee8b46ac3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ccoiDqDQ1y7hCWMt</url>
            <title>Stories by Deenank Sharma on Medium</title>
            <link>https://medium.com/@sharmadeenank?source=rss-7e6ee8b46ac3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:17:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sharmadeenank/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[Crack-opening the Time Capsule from 1999]]></title>
            <link>https://medium.com/@sharmadeenank/crack-opening-the-time-capsule-from-1999-16b20000bcbb?source=rss-7e6ee8b46ac3------2</link>
            <guid isPermaLink="false">https://medium.com/p/16b20000bcbb</guid>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Deenank Sharma]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 07:30:33 GMT</pubDate>
            <atom:updated>2024-03-15T07:30:33.840Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><p>RSA Security is known for releasing cryptographic challenges, especially related to RSA Encryption which involve factoring a large number into two large prime factors, a task that involves a lot of computation. These challenges take up to years of computation and show how RSA Encryption is secure to date. But this article talks about a very specific one i.e. <strong>RSA-240 Challenge</strong> . Completing this challenge held the key to opening a time capsule (explained in further sections).</p><h3>History</h3><p>In 1999, a time capsule was delivered to the famed architect Frank Gehry with instructions to incorporate it into his designs for the building that would eventually host MIT’s Computer Science and Artificial Intelligence Lab, or CSAIL. The time capsule was essentially a museum of early computer history, containing 50 items contributed by the likes of Bill Gates and Tim Berners-Lee. The Capsule is encrypted by RSA Encryption. The only way to open it was finding those prime factors which when multiplied with each other resulted in that 240-bit number. The time capsule wasn’t meant to be opened for another 35 years — unless someone could crack the cryptographic puzzle that was included in its design. The puzzle was designed by Ron Rivest, whose name lends the “R” to RSA, is arguably one of the most important cryptographic protocols ever created. He says it wasn’t designed to be complicated. Instead, Rivest created the puzzle so that it should take almost exactly 35 years to compute the answer based on Moore’s Law and the computation power of that time.</p><h3>RSA Encryption</h3><p>It is as follows :</p><ul><li>Two Large prime numbers are selected.</li><li>Then the product and totient are calculated as shown</li><li>Finally, public key and private key are generated based on these conditions</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*qjlsk2y5qBjLXymy.png" /></figure><p>The Encryption and Decryption process is as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ENXCwy398-JMGbE1.png" /></figure><h3>Number Field Sieve Algorithm</h3><p>The Number Field Sieve (NFS) is a sophisticated algorithm used for factoring large composite numbers into their prime factors. It’s one of the most efficient factoring algorithms known, particularly for numbers with hundreds of digits, which are commonly used in cryptographic applications like RSA.<br>The main theorem underlying the Number Field Sieve algorithm is the “Number Field Sieve Discrete Logarithm Theorem.” This theorem provides the mathematical basis for the NFS algorithm’s efficiency in finding prime factors of large composite numbers. Here’s an overview of the key aspects of this theorem:</p><ul><li><strong>Discrete Logarithm Problem:</strong> The NFS algorithm relies on the discrete logarithm problem in finite fields, which is a mathematical problem that involves finding the exponent (or logarithm) of a given element for a generator in a finite field.</li><li><strong>Polynomial Congruences:</strong> The NFS algorithm works by constructing a series of polynomial congruences modulo the composite number to be factored. These congruences are used to find smooth numbers, which are numbers with small prime factors.</li><li><strong>Sieving Process:</strong> The NFS algorithm employs a sieving process to find relations between the factors of the composite number based on the polynomial congruences. This sieving step is crucial for collecting information that will be used later in the algorithm.</li><li><strong>Linear Algebra:</strong> After sieving, the algorithm solves a large system of linear equations derived from the relations found in the sieving process. This step involves advanced techniques from linear algebra and is a key component of the algorithm’s efficiency.</li><li><strong>Square Root Step:</strong> Finally, the algorithm combines the solutions to the linear equations to obtain the prime factors of the composite number using a square root step. This step involves finding congruences modulo the factors and combining them to obtain the prime factors.</li></ul><h3>Verifiable Delayed Functions</h3><p>The <strong>verifiable delay function (VDF)</strong>, first introduced by Boneh et al. (2018), is a function that requires a prescribed amount of time for evaluations, even if many parallel computation resources are employed, while the result can be verified efficiently. This verification makes the computation evident and credible and these are mostly used in blockchain technology to verify that work was done by a node and the updation of blocks is valid.<br>Its working can be summarised as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/0*7GSqg6JI5SZRa518.png" /></figure><h3>Who Cracked It and How?</h3><p>On April 15, almost 20 years to the day after Rivest announced the puzzle, <strong>Bernard Fabrot</strong>, a self-taught Belgian programmer solved it. The puzzle’s original instructions dictated that the solution be sent to the director of the Laboratory for Computer Science. Still, Fabrot says he was surprised to learn that the lab no longer exists. (It was merged with MIT’s AI lab in 2003 to create CSAIL.) Fabrot says CSAIL director Daniela Rus wasn’t even aware of the puzzle’s existence when he told her he had the solution.<br>Rivest’s puzzle involved finding the number that results from running a squaring operation of nearly 80 trillion times. For example, if you start with squaring 2 you’d get 4, then square 4 to get 16, and then repeat this process 80 trillion more times. You then take the number you arrive at and run a mathematical operation that uses that number and a number given in the instructions for the puzzle. Doing so spits out a new number that can be translated into a short congratulatory phrase. (Rivest and Fabrot declined to reveal the exact phrase, which will be announced at the opening of the time capsule on May 15.)</p><p>The key to this puzzle is that it requires sequential operations, which means you can’t get to the answer faster by using parallel computing. You need to go through the squaring process one step at a time, building on the previous answers, to arrive at the solution, so using more computers or throwing a supercomputer at the problem won’t help.<br>The puzzle code was written in<strong> JAVA</strong> but Fabrot realized it could be solved faster if he used the <strong>GNU Multiple Precision Arithmetic Library, free software written in C for the arithmetic</strong>. He dedicated one of the CPU cores on his home desktop computer to running squaring operations in an attempt to solve the puzzle. Three-and-a-half years later, Fabrot finally completed approximately 80 trillion squaring operations and had derived the solution to the puzzle. To do this computation efficiently, he used the <strong>Number Field Sieve algorithm</strong>.</p><p>What makes it more exciting is that at the same time, a group of computer scientists and cryptography experts, led by former Intel engineer Simon Peffers, the Cryptophage group was researching verifiable delay functions as a possible security mechanism for blockchains like Ethereum.<strong> Verifiable delay functions </strong>are a modern take on Rivest’s early work on time-delayed cryptography, and their solution can be derived only through sequential operations. They saw this as an opportunity to test their research. In mid-March, the group began to run an algorithm designed by<strong> Erdinc Ozturk</strong>, a researcher at Sabanci University, that was optimized to reduce the amount of delay between squaring operations. This algorithm was implemented on a field-programmable gate array, a multipurpose chip that is programmed to run only a specific algorithm, which makes it more efficient than a general-purpose CPU. Using Ozturk’s algorithm, this FPGA was about 10 times faster than a high-end commercial CPU running non-optimized software.</p><p>But bound by destiny, they just fall short by two months and Bernard was able to crack it first. The contents will be displayed on <strong>May 15</strong> and according to Fabrot, he is most excited about an <strong>original copy of one of the earliest PC games, Zork, included in the capsule and the contributions of Bill Gates and Bob Metcalfe</strong> (invented ethernet).</p><h3>Credits:</h3><ul><li><strong>David Oberhaus</strong>, Wired Article <a href="https://www.wired.com/story/a-programmer-solved-a-20-year-old-forgotten-crypto-puzzle/">https://www.wired.com/story/a-programmer-solved-a-20-year-old-forgotten-crypto-puzzle/</a></li><li><strong>Eddie Woo</strong> Yt Channel <a href="https://youtu.be/4zahvcJ9glg?si=oPdpnLHdrNrZo4qP">https://youtu.be/4zahvcJ9glg?si=oPdpnLHdrNrZo4qP</a></li><li><strong>Practical Networking </strong>Yt Channel <a href="https://youtu.be/Pq8gNbvfaoM?si=9J8MnyT93mP6Ygmd">https://youtu.be/Pq8gNbvfaoM?si=9J8MnyT93mP6Ygmd</a></li><li><strong>IACR </strong>Yt Channel <a href="https://youtu.be/_-feyaZZjEw?si=dydEMI27BikH0mKZ">https://youtu.be/_-feyaZZjEw?si=dydEMI27BikH0mKZ</a></li><li>Chat Gpt (of course :) )</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16b20000bcbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>