127
u/Crimento 1d ago
It's even funnier in binary
102
u/Cheyomi832 1d ago
00000000 00000000 00000000
00000000 00000000 00000000
00000000 00000000 00000000
00000000 00000000 00000000
00000000 00000000 00000100
79
32
u/DrDam8584 1d ago
In fact it is a number as random as any others, mainly improbable.
18
u/laplongejr 1d ago
Not when the company who made the key announced that they accidentally used a key from a testing script which produces small keys...
8
8
u/die_liebe 1d ago
Where do these joke about 4 come from?
19
u/Gordahnculous 1d ago
eMuhdra, an Indian e-commerce company that up until recently provided TLS certs, had one of their private keys for their TLS certs being 4
There were 7 other private keys of theirs that were also less than 255 (decimal) but 4 is definitely the wildest one of the 8
6
u/NatoBoram 19h ago
Quite a few people claim the key would be just the number 4 in base64 but if you actually try to generate one, you'll get something like this:
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEoAoGCCqGSM49
AwEHoUQDQgAE4lNKNTLQj7ugLd5lnuYr0AMf4tt4VZbvUJMCRGsDCFLg8VdaTGM8
xxnf7l/ahi12TvyWw/MO4AVcQsI/GE7Yxg==
-----END EC PRIVATE KEY-----Save it in key.pem and do openssl pkey -in key.pem -text -noout on it then you'll see this:
Private-Key: (256 bit)
priv:
00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
00:04
pub:
04:e2:53:4a:35:32:d0:8f:bb:a0:2d:de:65:9e:e6:
2b:d0:03:1f:e2:db:78:55:96:ef:50:93:02:44:6b:
03:08:52:e0:f1:57:5a:4c:63:3c:c7:19:df:ee:5f:
da:86:2d:76:4e:fc:96:c3:f3:0e:e0:05:5c:42:c2:
3f:18:4e:d8:c6
ASN1 OID: prime256v1
NIST CURVE: P-2563
u/cAtloVeR9998 15h ago
That last E after the string of As is all the entropy you need for an intermediate certificate’s key.
4
u/Single-Virus4935 1d ago
The key ist stored with leading zeros but a variable length encoding. So it is max 1byte
4
1
u/TomatilloNo8486 5h ago
Excuse me, I might not understand the basics of cryptography but I have a handle on compression
0
213
u/MrFarby 1d ago
where did you find 384 bit numbers ????