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:

402

You're viewing a single thread.

402 comments
  • tw: fatphobia

    this is gonna sound like a bit and it’ll definitely be insensitive so i apologize in advance, i hope this doesn’t get me in trouble on here but i’ve been struggling with sliding into this one reactionary viewpoint due to the harassment i get from practically every single person in my life for being vegan and i just need to rant a little and need advice maybe

    but for example, today just out of the blue my two best friends just start going off on me in our groupchat for being vegan (i have covid rn and they’re trying to blame me being vegan for being sick?), mocking me like they never have before and acting like they’re genuinely disappointed in me for being vegan, etc. and one of my friends is obese (and his diet consists of mainly steak, hamburgers, & pizza) and i feel awful for admitting this but it took everything in me to not just rip into him for stuffing his face with animal corpses and having animals be tortured and killed so he can be so gluttonous to the point that he’s the size that he is (i did make fun of him for being religious which is counterproductive but i was mad πŸ€·β€β™‚οΈ). i feel like encountering so much anti-veganism from my friends, family, co-workers, etc., for the past year, being interrogated and mocked on a daily basis about my beliefs, constantly seeing anti-vegan discourse from the left, etc., is just making me double down harder on my beliefs to the point it’s turning me into this cynical, hateful person. i don’t even get shit for being marxist from the people that know i am! to the vegans out there, how do you cope? i mean the obvious answer here is to just try to distance myself from the people that’re like that and to try to educate them in civil conversation but i can only do so much of that, and as someone who’s struggled with their weight before years and years ago i feel gross that i looked at someone’s obesity and for a moment viewed it as disgusting because they reached that point by eating animals. idk i just needed to get that off my chest, i’ll probably forget to come look back at this before the thread’s locked lmao

    • tbh it's fucked that "friends" are treating you like this (anti-veganism on the left is a whole other mess). maybe you didn't have to focus on your friend's weight as the main point for hating his carnism, but his diet sounds disgusting. he's certainly far from healthy, weight completely removed from the situation. maybe that's a way you can reframe that in the future. you getting covid has nothing to do with weight, diet, etc. would you be comfortable confronting these friends thag this is a line for you and not to cross it?

      i'm sorry you're even in this situation with them and i hope you have a speedy recovery from covid avoheart

    • It's only natural to look for cheap shots at somebody who's being an asshole. It's just important to recognize that he doesn't suck because he's fat, and he's not fat because he sucks. You can overeat sour patch kids just as much as you can overeat animal carcasses.

      Personally, I just don't interact with people who treat me like that. I wouldn't call him a fat gluttonous pig or whatever, I'd call him an asshole and a bully and I'd tell him to fuck off to his inevitable eternity in hell because that's where people like him go. (You said he's religious so it can be cathartic to really dig into them like that) and then I'd block him until I receive no less than a handwritten apology letter

    • Carnists let loose zoonotic disease

      Blame vegans

      Yikes

You've viewed 402 comments.