r/ProgrammerHumor • • Oct 26 '26

Meme trustMeBro384Bit

Post image
2.4k Upvotes

18 comments sorted by

70

u/redlaWw Oct 26 '26

2384-1 is also a bad private key.

33

u/w453y Oct 26 '26

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

10

u/setibeings Oct 27 '26

That's why I use 2384 - 4

3

u/Impossible_Swan_7472 Oct 27 '26

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.

237

u/precinct209 Oct 26 '26

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 Oct 27 '26

Seems perfectly random value to me

89

u/LostKnight84 Oct 26 '26

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

27

u/Fragrant_Minimum1739 Oct 26 '26

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 Oct 26 '26

You're spot on:

39402006196394479212279040100143613805079739270465446667948293404245721771497210611414266254884915640806627990306815

6

u/AdBrave2400 Oct 26 '26

You nailed it

3

u/LostKnight84 Oct 26 '26

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 Oct 26 '26

3 every 10 is probably the best small approximation

2

u/syedwafihasan Oct 27 '26

What's your thought process for calculating this?

4

u/Fragrant_Minimum1739 Oct 27 '26

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 Oct 26 '26

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

We should have stopped at 4

9

u/Bomaruto Oct 26 '26

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.