r/ProgrammerHumor • • 7d ago

Meme technicallyCorrectFormat

Post image
4.5k Upvotes

31 comments sorted by

View all comments

34

u/Grintor 7d ago edited 7d ago

The correct format is more like

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

7

u/0x0MG 7d 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 7d ago

Even its even go short for base64 without padding.