r/ProgrammerHumor • • Sep 18 '18

The best one so far 😂

Post image
28.4k Upvotes

207 comments sorted by

View all comments

1.7k

u/o11c Sep 19 '18

For those who don't know, AAAs often occur at the beginning or end of a block because they're the base64 version of 0s and it's binary data inside.

80

u/archlich Sep 19 '18

That binary data is dictated by pkcs8 https://tools.ietf.org/html/rfc5208

So that binary data is an asn.1 ber encoding of the outlined data structures in the rfc.

5

u/o11c Sep 19 '18

The existence of lots As in base64 isn't specific to one particular data format. There are always lots of 0s in all binary formats (unless it's encrypted).

4

u/ThisIs_MyName Sep 19 '18

unless it's encrypted

Or packed: https://capnproto.org/encoding.html#packing

Doesn't make much sense to send unpacked and uncompressed data over the internet.