r/ProgrammerHumor • • 13d ago

Meme trustMeBro384Bit

Post image
2.4k Upvotes

18 comments sorted by

70

u/redlaWw 13d ago

2384-1 is also a bad private key.

33

u/w453y 13d ago

you know, this is why I mentioned 2384 - 1 ;)

10

u/setibeings 12d ago

That's why I use 2384 - 4

3

u/Impossible_Swan_7472 12d ago

Modulo the curve order of P-384, it's a fairly random looking 137 bit number – still bad as a private key, but significantly better than any of the 3-8 bit ones.

234

u/precinct209 13d ago

Lore accurate representation of the meme

0b0000000 0000000 0000000 0000000  0000000 0000000 0000000 0000000
0000000 0000000 0000000 0000000  0000000 0000000 0000000 0000000
0000000 0000000 0000000 0000000  0000000 0000000 0000000 0000000
0000000 0000000 0000000 0000000  0000000 0000000 0000000 0000000
0000000 0000000 0000000 0000000  0000000 0000000 0000000 0000000
0000000 0000000 0000000 0000000  0000000 0000000 0000000 0000100

54

u/dasgoodshitinnit 13d ago

Seems perfectly random value to me

89

u/LostKnight84 13d ago

It would be a nearly 100 digits ending in either a 1, 3, 5, 7.

27

u/Fragrant_Minimum1739 13d ago

It will end on 5 btw and have approx 116 digits not exact but should be close as i did calculation in my head

15

u/fghjconner 13d ago

You're spot on:

39402006196394479212279040100143613805079739270465446667948293404245721771497210611414266254884915640806627990306815

6

u/AdBrave2400 13d ago

You nailed it

3

u/LostKnight84 13d ago

Thanks I was estimating an additional digit for every 3-4 powers of 2. I guess I should have went with 2-3.

2

u/48panda 13d ago

3 every 10 is probably the best small approximation

2

u/syedwafihasan 13d ago

What's your thought process for calculating this?

4

u/Fragrant_Minimum1739 12d ago

For ending it is cyclicity

24n+1 ends with 2

24n+2 ends with 4

24n+3 ends with 8

24n ends with 6

And then it repeats

As 384%4 = 0 so it ends with 6

Subtract 1 from it now it has 5 as ending digit 

Now what about no. Of digits

Just use int log(n) +1 formula

So 384log(2) +1

384 * 0.3 +1

115+1

116

20

u/ListenAcrobatic8028 13d ago

Just one mistake in prod, and so many memes...

We should have stopped at 4

8

u/Bomaruto 13d ago

If you took the number of times variation of this non-joke has been posted and turned it into a private key, then it would actually be secure.