News for hackers. Stuff that matters.
Re:Why does my SSH private key still work after changing som... by newpavlov on Saturday December 31, 2022 @06:53AM (#34195639)
Try to run a non-toy RSA by hand using pen and paper, it will be quite painful and impractical. Practicality of RSA largely depends on existence of computers. Even in the presence of all required theoretical knowledge, an application may not be practical, thus it does not get "invented" until the practicality issue gets resolved.

I would say it's more interesting that one-time pad encryption was not invented and used much earlier than 19th century. It has obvious military and intelligence uses and is simple enough to be executed by hand.

Re:Why does my SSH private key still work after changing som... by ausudhz on Saturday December 31, 2022 @07:11AM (#34195753)
For centuries people have been encrypting things "by hand" and "inconveniently" (Cesar's cipher is an example, I can make many more).

RSA doesn't largely depends on the existence of computer, it could've been used "by hand" using the math behind it. The reason why was not is because, prior to computer, there was not a problem of "sharing" the key (and btw Nazi knew that a single key was weak, that's why they'd change it everyday to encrypt the communication with enigma)

> I would say it's more interesting that one-time pad encryption was not invented and used much earlier than 19th century

That's not true, as I mentioned Cesar's cipher is an example of that, though of course uses a simple key. Radio communications (and of course internet later) is the reason why encryption started to boom on the early 19th century onwards.

Re:Why does my SSH private key still work after changing som... by Hendrikto on Saturday December 31, 2022 @07:20AM (#34195816)
Ceasar’s cipher is neither complex nor an OTP. What are you talking about?
Re:Why does my SSH private key still work after changing som... by ausudhz on Saturday December 31, 2022 @09:21AM (#34196643)
What are you talking about. That was the first cipher.

RSA is OTP?

Re:Why does my SSH private key still work after changing som... by nvrspyx on Saturday December 31, 2022 @12:33PM (#34198598)
The point originally made was that RSA couldn't practically be used because of how complex the math is to do by hand. So, the parent is pointing out that the Caesar cipher isn't a counterargument.

In other words, the "inconvenience" of doing a Caesar cipher by hand is nowhere near comparable as doing an RSA cipher by hand.

Re:Why does my SSH private key still work after changing som... by ausudhz on Saturday December 31, 2022 @02:06PM (#34199604)
Is not complex at all, if you can't multiply two prime number and do subtraction probably you should reconsider your skills.

If people were able to do that in 15th century by hand I don't see how who really needs it couldn't.

Is just the needs were different, but is not complicated

Re:Why does my SSH private key still work after changing som... by masud13579 on Monday January 02, 2023 @05:56PM (#34224875)
Otp
Re:Why does my SSH private key still work after changing som... by masud13579 on Tuesday January 03, 2023 @07:59PM (#34240443)
Otp
Re:Why does my SSH private key still work after changing som... by krisoft on Saturday December 31, 2022 @08:01AM (#34196073)
> The reason why was not is because, prior to computer, there was not a problem of "sharing" the key

Lol. There is a new dude sitting in a castle one sea over. You want to communicate with them. Let’s say you want to agree to attack a third neighbour at the same time. If your message gets intercepted you will be in trouble.

How do you share your secret keys with them? Mind you, you don’t really trust any of your man, and the sea route is treacherous so you don’t fancy risking going in person.

Sharing keys is a problem old as time.

Re:Why does my SSH private key still work after changing som... by ausudhz on Saturday December 31, 2022 @09:26AM (#34196681)
That's the point. Still though is very old is not a 19th century problem. Yet RSA was used 400 years after the theory behind

Why didn't people came up with a manual "RSA" before. Since the math is 400 years old.

Re:Why does my SSH private key still work after changing som... by codeflo on Saturday December 31, 2022 @09:37AM (#34196780)
I recommend you try to do it -- it's a fun exercise, and will very quickly answer any remaining doubt why it can't be done manually.

We actually did that in university; the public key we used was something like 91 (not hard to factor). Wikipedia has an example with 3233, and that's already very cumbersome: https://en.wikipedia.org/wiki/RSA_(cryptosystem)#Example

Re:Why does my SSH private key still work after changing som... by ausudhz on Saturday December 31, 2022 @09:52AM (#34196915)
I did that in university before you born

It can be done manually easily

Re:Why does my SSH private key still work after changing som... by zeven7 on Saturday December 31, 2022 @09:56AM (#34196953)
I tried generating an Ethereum address by hand starting by creating a random private key. It quickly got away from me.

I wish there was some way to simplify the math to allow doing it by hand. It would be a nice way to check for correctness while computing it offline, and while ensuring dependencies hadn't been compromised to produce a fake public address.

Re:Why does my SSH private key still work after changing som... by rocqua on Saturday December 31, 2022 @02:37PM (#34199889)
I feel like making your own circuits that could do this would be a more feasible approach. Or at least a circuit that uses small purpose build ICs that are easy to verify.
Re:Why does my SSH private key still work after changing som... by im3w1l on Saturday December 31, 2022 @07:56AM (#34196047)
Well book ciphers go some ways back and they are almost OTP (in the sense of how they are performed, not in the sense of security properties). It may have been prohibitively expensive to print a custom pad used for encryption.
Re:Why does my SSH private key still work after changing som... by ElevenLathe on Saturday December 31, 2022 @10:13AM (#34197105)
Expensive but spy agencies did it.
Re:Why does my SSH private key still work after changing som... by jrochkind1 on Saturday December 31, 2022 @01:25PM (#34199166)
A one-time pad seems totally feasible to me without a computer, and sufficient motivation. RSA does not. They're different algorithms of course! OTP is a very simple one, as you point out.
Re:Why does my SSH private key still work after changing som... by Retric on Saturday December 31, 2022 @10:48AM (#34197446)
RSA on pen and paper isn’t that bad compared to some other calculations people used to do by hand. By comparison in 1800 multiple people had already calculated the first 100 digits of pie. https://en.wikipedia.org/wiki/Chronology_of_computation_of_π

People can get shockingly good at that kind of thing with enough practice.