r/ProgrammerHumor • • Oct 23 '26 • Bravo 2 Popcorn 1

Meme privateKey

Post image
26k Upvotes

240 comments sorted by

View all comments

Show parent comment

5

u/GRex2595 Oct 23 '26

The private key should have been super obvious, though. I'm trying to figure out how bad tou have to mess up to get 4 and not notice.

3

u/platinummyr Oct 23 '26

You have to not be paying attention. But once the public key is made, it will look random so you won't be able to tell easily

2

u/GRex2595 Oct 23 '26

But it's more than just not paying attention, right? Like you have to be making serious mistakes repeatedly to miss something this bad.

4

u/platinummyr Oct 23 '26

Yes absolutely. You have to be doing things non standard or home grown. The basic open source tools for creating keys wouldn't let you just do this, so they must have been doing something funny. But once the first mistake happens it is negligence to not notice and end up releasing it as the real public keys

3

u/SuperFLEB Oct 24 '26

Last I checked, it was that they didn't care when they were generating it. It was a test cert that got loose, so when they generated it, "4" looked stupid but that was okay. After they generated it, the "4" wasn't visible.

1

u/GRex2595 Oct 24 '26

Somewhere there is something responsible for ensuring that these keys are cryptographically secure. Maybe you can't actually see the 4 as a person looking at the cert, but something should be checking that the keys aren't being generated in any way that a 4 could randomly show up unnoticed and compromise the security. Somebody had to mess up bad for there to be no checks against these types of mistakes.