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.
Remember nerds just like in the old site, no current struggle session discussion here on the new general megathread, i will ban you from the comm and remove your comment, have a good day/night :meow-coffee:
Since I know everyone here is very invested in my love life, got my first phone number from having the corgi with me on Sunday. Got a date on friday! They're a special ed teacher (is there a better word for that? please tell me if so) that plays a lot of DnD. Pretty stoked! Promising job interview lined up for next week, and doing mutual aid work (food rescue and distro) over the weekend.
My wife used to be friends in high school with this couple that ended up being super reactionary. The dude ended up getting testosterone because he couldn't get abs. He's ostensibly opposed to gender affirming care unless he's trying to be hotter. I thought this shit was hard to get? Just not for lunatics?
Twitter right now is so full of reddit-ass engagement bait questions like "what song is secretly sad?" but instead of the answers being the results of a thousand people googling "famous secretly sad song" it's 999 dogshit unrelated memes and one guy going "hey ya!"
There's supposed to be anti-lgbtq rallies here today. Too bad for them, I'm a pediatrics nurse and I'm wearing my pride stuff to work today just to spite yall. Sucks to suck π
fun fact, all is not lost when a quantum computer becomes capable of breaking factorization-based crypto algorithm. there is in fact a subfield of mathematics that is dedicated primarily to this exact question called post-quantum cryptography. it generally involves using other kinds of mathematical structures than just the integers to construct algorithms that are not vulnerable to Shor's algorithm or some other known exploit. i had a professor during my undergrad that worked in it and claimed to have been harassed regularly when doing international travel because i guess what's in his head qualifies as a national security interest. crazy shit.
Yeah anyone who enjoys βabuser litβ like The Hungry Hungry Caterpillar is pretty sus in my eyes. My nephew is getting into it. Iβm worried, itβs a straight pipeline from there to spending hours watching Koch-funded tiktok accounts.
The funniest thing to me is the people who are like "It's against the law to be in the left lane if you're not passing!" because dudes, it's also against the law to be speeding yet you're doing that.
You can't really sit there and start getting angry about traffic violations when you're in the middle of one.
working in a grocery store in the candy isle is kind of a willpower hell because on one hand i don't want to give these fuckers any more of my wages but on the other hand, mmmmmmmmmmmmm chocolate
I've talked before about how much Tamir Rice stuck with me and changed me. But something I've never spoken about is the second hand trauma that it gave me once. Listen, I'm just a white guy (a white ND guy, so not zero risk lol, but yaknow) so I can't even begin to fathom 1% of the trauma such incidents put on the black community. But... I'll put the rest under spoiler tags
spoiler
I clearly remember sitting on the bus at my old job a couple years after the Tamir incident. I looked over fondly to one of my older black boys. I sweet kid, bit of a brat but it was always banter and not actual rudeness with him so I enjoyed working with him, which was rare for boys on the older end and me. Boys 10-14 are where I struggle most connecting as a childcare provider usually. He was like 10 at the time, and I was suddenly struck with this gripping fear of losing him to an incident like that. Like it just washed over me and I was suddenly really fucking afraid. Idk. I dont think we talk enough about the collective trauma we feel over something like a 12 year old being gunned down in a park in broad daylight with no consequences for the murderer. :::
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.
During the cold war, the anticommunist ideological framework could transform any data about existing communist societies into hostile evidence. If the Soviets refused to negotiate a point, they were intransigent and belligerent; if they appeared willing to make concessions, this was but a skillful ploy to put us off our guard. By opposing arms limitations, they would have demonstrated their aggressive intent; but when in fact they supported most armament treaties, it was because they were mendacious and manipulative. If the churches in the USSR were empty, this demonstrated that religion was suppressed; but if the churches were full, this meant the people were rejecting the regime's atheistic ideology. If the workers went on strike (as happened on infrequent occasions), this was evidence of their alienation from the collectivist system; if they didn't go on strike, this was because they were intimidated and lacked freedom. A scarcity of consumer goods demonstrated the failure of the economic system; an improvement in consumer supplies meant only that the leaders were attempting to placate a restive population and so maintain a firmer hold over them. If communists in the United States played an important role struggling for the rights of workers, the poor, African-Americans, women, and others, this was only their guileful way of gathering support among disfranchised groups and gaining power for themselves. How one gained power by fighting for the rights of powerless groups was never explained. What we are dealing with is a nonfalsifiable orthodoxy, so assiduously marketed by the ruling interests that it affected people across the entire political spectrum.
The landlord raised our rent, and according to a comrade who knows more of this stuff, it was just 5β¬ below the maximum before he would get into legal trouble. I suppose as a sailboat owner, someone has to pay for its maintenance
So I'm bored and reading about the Jamestown colony and found two interesting anecdotes:
For those who don't know, in the early years, they routinely lost 90% of their population to starvation/disease and needed constant replenishment of people and supplies. At one point, a ship of 140 English arrived, but the colony forcibly sent back 30 of the men with no explanation as to why.
Another story: One guy was given a ship and ordered to sail upriver to buy corn from the natives, which he did. Rather than bring the corn to the starving Jamestown residents, he skipped that stop and headed straight to England
Fire alarms going off all day... a bunch of residents are waiting outside and everyone is saying "oh it's probably our unit cause we have issues with the _____ that the mgmt company refuses to fix." New person is like "uh no, it's us, we have a light full of water." and proceeds to show us a phone picture of a boob light with several inches of gross water in it. The light is on in the picture, illuminating the gross water.
"uhhhh, did you tell them about this...?"
"yeah, they said it was fine."
Also our building's fire alarms are not connected to the fire dept lol. The firefighters were waiting around for like an hour calling the mgmt company emergency line trying to reach them.
I've been trying to get other residents to like do something and grown adults are shrugging and saying "well, sometimes all you can do is chuckle"
Dog people are the craziest. Mostly because i've never seen a cat owner ask if they can bring their cat in one day a week to the office. Guess they should have got a pet instead of baby-lite.
I mastered the ability to do perfect introductions. I can walk into a room, make connections with lots of people, and make plenty of excellent jokes. I make a great first impression when I try to. I will never be able to do any of that again with that group ever. I will revert to my usual awkward, edgy marxist self. I don't know why, its weird.
Heyyy guys! Day two of having a real bad time. Anyone want to just keep me company at all? PMs open for it. We can talk about dumb shit even! Just got back from like a two hour walk and this room is already closing in on me :D
fun fact, there was actually a version of RSA with quantum-resistant parameters submitted to the NIST competition, the main trick being to use keys of like a terabyte lol
It's actually not entirely a joke, they did have to do a bunch of work regarding the generation of the like billions of primes needed to generate such a key
dating question for women and/or guys:
from my understanding, a solid strat to take a flirty texting pic as a woman is to figure your boobs into the equation. i don't mean nudity, just some cleavage in there. so the question is: what can a guy do to reciprocate? i don't have those assets to work with
None of the Putin lovers on Hexbear will believe me but this disdain for all things sexy will be a detriment to socialism. Sorry, tankies, but if your revolution doesn't let me be as horny as I want then don't call me your "comrade". ππ€¬ππ¦
I keep seeing the same jobs posted over and over again. I'm overqualified for a lot of them but never hear back about my applications. Starting to think all these companies are just cardboard cutouts posing as businesses
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
Guy who watches Fallen Angels because he's on a "mcdonald's paper bag in media" binge and guy who started eating mcdonald's because he saw it in Fallen Angels (they're exploring eachother's bodies rn)
There's the Ceasar cipher and any number of ciphers where you replace letters by some step of letters (Ceaser apparently attributed this to his plans never being intercepted but honestly not many people knew how to read in the first place). You can also use functions! I don't remember the requirements for them besides the obvious, like it'd have to be one to one and onto for the domain and co-domain of alphabetical letters (I think it can work by just doing ax+b mod 26 with a relatively prime with 26, but you can use higher degree functions too). They're all not terribly hard to crack, unfortunately, even if you design a really cool one it's still just a permutation of letters.
RSA is based upon the principle that factoring very large numbers is computationally difficult (for now!).
An important thing to keep in mind is that factoring large numbers has never been proven to be NP, and it is possible that someone will develop a deterministic algorithm that breaks RSA in P time.
Me as a kid when Sean Bean reads Yeats in an abandoned church as an interlude between two scenes of guys doing tactical body popping with akimbo guns in Equilibrium (2002):
I have spent $0 in the last 3 weeks. 8 more days to go before I get paid π (and all the money goes to bills π) fuck landlords, fuck banks, fuck waiting 4 weeks for your first paycheck
My beard is like 3 inches long now, I really should just shave it off and buzz my head too but my razor is broken and asking my dad to borrow his is an ordeal.
Underrated movie gag is to do a freeze frame by literally just having the actors stay as still as possible, particularly if the freeze frame is on an extreme expression that takes effort to hold.
I know this is like a police squad thing but my fav example of it is from God of Cookery.
https://www.youtube.com/watch?v=n9JqT-O5eqY <- This is basically the climax of the film though in case you're wary of spoilers, I think the whole film is on youtube and its well worth a watch, same director/comedian as Kung Fu Hustle.
I've played 30+ hours of Cyberpunk now and while it's definitely very good, I kinda feel like it's too big for it's own good. There's a number of features and quests that I think are cool, but the game would've been fine and more cohesive without them. It makes it feel like it's less than the sum of its parts.
I hesitate to call the game "bloated" because I don't think that's the right thing to call it. "Excessive" feels more appropriate. It's not like these quests are cheap filler to pad the runtime or boring fetch quests, they're well made and creative, but that alone doesn't justify them being in this game. They are fat that could've been trimmed, and I think the game would've been better for it. The Ozob quest with the grenade clown is a good example of this.
just realized in the "Blocks" screen you can search for comms to block without having to see their content. no hentai or AI-generated images shall encroach on my feed
Just finishing Taplin's "Move Fast and Break Things (2017)" and it's impressive how well he documents the exact causes of the current WGA strike (other than AI). It's a cool read if you want a critical view of the entire Silicon Valley Techbro cartel leadership going all the way back to the Koch brothers, though he's still quite a lib. And he hasn't even mentioned Elon Musk yet.
After that I'm reading Doctorow's Chokepoint Capitalism which sounds like a pretty good read.
Lavrilleux was reportedly questioned by police officers from the French intelligence service. Her 2021 report used leaked classified documents to allege that Egyptian authorities used French intelligence to bomb and kill smugglers on the Egyptian-Libyan border between 2016 and 2018. According to the report, French forces were implicated in "at least 19 bombings" against civilians.
doing that thing where I look back on old titanfall clips i have and being like "this is genuinely unimpressive play and sloppy movement, cant believe I used to think this was good"
i'll still occasionally hit the occasional SICK KRABER SHOT though so its not all for naught
I'm thinking about doing a painting in the vein of those depicting the guillotines in the French Revolution, but I'm not sure who would be the best central subject. Like, my first thought was set it in Central Park and have it be Chris Matthews, but that meme is pretty stale now. ? ?
Why can't I send videos on Discord ever since I switched to Ubuntu ugghhh
I'm pretty sure it's something with my codecs. I can send old videos I have in my HDD or stuff I download, but if I use ffmpeg to make a new video it gets stuck processing. Annoying though because I can't find anyone with the same problem. I tried looking up the codecs Discord uses natively, supposedly h264 video and aac audio should work but no luck.
I don't like Prolog but I can see its potential. The contradiction between the dominant, static, sequential mode of computer programming and the highly dynamic reflective and creative nature of human thought must be resolved somehow. We can't keep going on like this. Programmer-reactionaries (Suckless, CAT-V, some GNU people, etc) want a return to the time before the complexity scaled out of control but it's not possible to return to that time. The capitalists in control of the direction of technological development don't care as long as the money keeps flowing. Actually, it's better for them because of the amount of labor needed to maintain this infrastructure is massive and can be exploited. Not to mention that they can take advantage of the endless security problems present in the computer infrastructure of enemies and competitors.
I've been messing around on Hexbear for a few months and I think that I'm going to log out and not come back. It's been fun I guess. This scene is too young for me to really be interesting tbh.
horror book recs for the Halloween season? I've pretty thoroughly explored movies so I tend to have to scrape for new stuff to watch. Down for novels or short story collections, whatever ya'll can throw at me.