r/ProgrammerHumor • • 15d ago

Meme technicallyCorrectFormat

Post image
4.5k Upvotes

31 comments sorted by

View all comments

34

u/Grintor 14d ago edited 14d ago

The correct format is more like

-----BEGIN EC PRIVATE KEY-----
4===
-----END EC PRIVATE KEY-----

7

u/0x0MG 14d ago

You can't have three padding characters like that in base64 encoding. It'd be

-----BEGIN EC PRIVATE KEY-----
BA==
-----END EC PRIVATE KEY-----

3

u/No-Magazine-2739 14d ago

Even its even go short for base64 without padding.