Skip Navigation

The RSA Cryptosystem - New General Megathread for the 20th of September 2023

On this day in 1983, a patent was granted to MIT for a new cryptographic algorithm: RSA. "RSA" stands for the names of its creators Rivest, Shamir, and Adlemen. RSA is a "public-key" cryptosystem. Prior to the creation of RSA, public-key cryptography was not in wide use.

Public-key cryptography

Cryptography is the study and practice of secure communication. Throughout most of its historical use, cryptographic techniques were entirely dependent on the involved parties already sharing a secret that could be used to reverse an encryption process. In early cryptography, the secret was itself the encryption process (for example, a Caesar cipher that substitutes letters in a secret message with letters a fixed number of steps down the alphabet). As cryptography became more systematic and widespread in use, it became necessary to separate cryptographic secrets from the cryptographic techniques themselves because the techniques could become known by the enemy (as well as static cryptographic schemes being more vulnerable to cryptanalysis). Regardless, there is still the issue of needing to share secrets between the communicating parties securely. This has taken many forms over the years, from word of mouth to systems of secure distribution of codebooks. But this kind of cryptography always requires an initial secure channel of communication to exchange secrets before an insecure channel can be made secure by the use of cryptography. And there is the risk of an enemy capturing keys and making the entire system worthless.

Only relatively recently has this fundamental problem been addressed in the form of public-key cryptography. In the late 20th century, it was proposed that a form of cryptography could exist where the 2 parties, seeking to communicate securely, could exchange some non-secret information (a "public" key) derived from privately held secret information (a "private" key), and use a mathematical function (a "trap-door" function) that is easy to compute in one direction (encryption) but hard to reverse without special information (decryption) to encipher messages to each other, using each other's respective public keys, that can't be easily decrypted without the corresponding private key. In other words, it should be easy to encipher messages to each other using a public key but hard to decrypt messages without the related private key. At the time this idea was proposed there was no known computationally-hard trap-door function that could make this possible in practice. Shortly after, several candidates and cryptosystems based upon them were described publicly πŸ‘, including one that is still with us today...

RSA

Ron Rivest, Adi Shamir, and Leonard Adleman at MIT had made many attempts to find a suitably secure trap-door function for creating a public-key cryptosystem over a year leading up to the publication of their famous paper in 1978. Rivest and Shamir, the computer scientists of the group, would create a candidate trap-door function while Adleman, the mathematician, would try to find a way to easily reverse the function without any other information (like a public key). Supposedly, it took them 42 attempts before they created a promising new trap-door function.

As described in their 1978 paper "A method for obtaining digital signatures and public-key cryptosystems", RSA is based upon the principle that factoring very large numbers is computationally difficult (for now!). The paper is a great read, if you're interested in these topics. The impact of RSA can't be overstated. The security of communications on the internet have been dependent on RSA and other public-key cryptosystems since the very beginning. If you check your browser's connection info right now, you'll see that the cryptographic signature attached to Hexbear's certificate is based on RSA! In the past, even the exchange of symmetric cipher keys between your web browser and the web server would have been conducted with RSA but there has been a move away from that to ensure the compromise of either side's RSA private keys would not compromise all communications that ever happened.

The future of RSA?

In 1994, a mathematician named Peter Shor, developed an algorithm for quantum computers that would be capable of factoring the large integers used in the RSA scheme. In spite of this, RSA has seen widespead and increasing use in securing communications on the internet. Until recently, the creation of a large enough quantum computer to run Shor's algorithm at sufficient scale was seen as very far off. With advances in practical quantum computers though, RSA is on its way out. Although current quantum computers are still a very long way off from being able to break RSA, it's looking more and more plausable that someone could eventually build one that is capable of cracking RSA. A competition being held by the US National Institute of Standards and Technology, similar to the one that selected the Advanced Encryption Algorithm, is already underway to select standard cryptographic algorithms that can survive attacks from quantum computers.

Megathreads and spaces to hang out:

reminders:

  • πŸ’š You nerds can join specific comms to see posts about all sorts of topics
  • πŸ’™ Hexbear’s algorithm prioritizes comments over upbears
  • πŸ’œ Sorting by new you nerd
  • 🌈 If you ever want to make your own megathread, you can reserve a spot here nerd
  • 🐢 Join the unofficial Hexbear-adjacent Mastodon instance toots.matapacos.dog

Links To Resources (Aid and Theory):

Aid:

Theory:

407

You're viewing a single thread.

407 comments
  • I'm gonna have to log off because I wanna POST and can't stop myself. anyways just gonna vent before logging off for a while. might be heavy, ill save this for my therapist later.

    cw: alcoholism, talking about my dead mom, talking about a suicide attempt

    spoiler

    but it is really hard to sleep other than the pain, but mainly because of my dad. since it's like 8am and he woke up and he drinking despite yesterday being sober. it just more so like. I'm tired. He has been drinking since all of last week to without stopping except for yesterday. It just like. every time I hear his drink slam on the table, it just reminds me of the beginning of this year. where he was vomiting and hallucinating and shit. not like that was a good time anyways because my mom was going down a health death spiral. I dunno why typing that is making me cry. Im tired of crying. I guess because it still hurts. I try not to think about my mom. That reminds me I still have her voice messages on my phone and I can't.. I can't listen to those, but I can't delete them yet either. Im getting side tracked.

    Anyways, I just know the beginning of this year was really awful. I do remember like at the beginning of this year I did try to do another suicide attempt. Mainly because like literally on the new year, my mom called me asking she needed help for tomorrow. I said sure I'd help her, but later that night when trying to sleep. I kind of just started to cry, had a breakdown because of my mom and also dealing with my dad. and I decided to take a bunch of ibuprofen I had laying around on a spur of the moment. except like I obviously didn't take enough since im still alive. I just took some, went to sleep, and then two hours later woke up shaking, feeling nauseous like I wanted to puke, and just this burning sensation in my throat. I started to cry to because I realized I might of fucked up and panicking a little.

    Anyways I went back to sleep after calming myself down. So thankfully I didn't take much. Also later on, I decided to put that bottle of ibuprofen somewhere really fucking hard to reach and get into. Except now I kind of have to bring it out for my wisdom teeth. It's also why yesterday I was getting kind of upset about my dad not wanting to go to the pharmacy so we can get the prescriptions along with Tylenol. But we went, so everything okay now. I just don't want to go through that again, and I also don't want to be where like my mom abused the shit out of ibuprofen for pain and ended up puking blood.

    I'm not sure why im talking about that. Just mainly this year been hard, and the beginning of the year was really hard. And each time my dad fucking drinks and slams his damn drink down, it just, reminds me of my mom dying. him almost drinking himself to death. that suicide attempt. other things like last year when he kicked me out for about a week. and then just remembering other things as it becomes a domino effect.

    anyways getting back to now. something else but I'm hungry but I really don't want to eat. I haven't really ate much anyways and I am hungry.. but I don't want to eat right now. What's the point? Like I'm fine with not eating, I can go days. Some days it's just I'd rather not eat because everything just too fucking much and I feel a lot of emotional distress. My dad just gonna eventually drink himself to death if he doesn't stop. and sure he is gonna die one day, but what am I gonna do? Things would be easier if I like, felt safe. felt secured. If I had a way of supporting myself. But I don't since I rely a lot on my dad. and I wish I could be normal and work, but I have trouble with work and holding down work and I don't qualify for disability right now. So like, I'm just fucked. That dread scares me because it is coming one of these days. I can't ignore it some days. Some days feels like that its gonna be the end.

    Im hoping therapy really helps teaches me coping skills to help manage myself better and be able to work. but im starting to have doubts. it would also be nice if my dad would just stop drinking just for the love of fucking everything. just stop. please stop. just stop stop stop stop stop. just please stop.

    anyways I'm gonna force myself to eat I guess. I don't to, but I have to since I don't want to make things worse. I'm just tired of what feels like. Constantly living in this state of being. It's also the next day so I can take that hydrocodone, since the pain starting to kind of get bad. I really need to be careful with this shit because I honestly don't feel really safe with it around. I don't know how im gonna respond to it either. So just gonna take it only when needed like right now and be very fucking careful. also then get some sleep and eat some soup or something. Once my mouth heals, I'm gonna go dump that opioid bullshit if there any left.

You've viewed 407 comments.