Spotting base64 encoded JSON, certificates, and private keys
1–10 of 135 posts
Re: Spotting base64 encoded JSON, certificates, and private keys
#2Re: Spotting base64 encoded JSON, certificates, and private keys
#3Oh that's nifty. Spotting base64 encoded strings is easy enough (and easy enough to test that I give it a shot if I'm even vaguely curious), but I'd never looked at them closely enough to spot patterns.
Re: Spotting base64 encoded JSON, certificates, and private keys
#4 $ echo -n Vm0 | base64
Vm0w
It can be extended indefinitely one character at a time, but there will always be some suffix.Re: Spotting base64 encoded JSON, certificates, and private keys
#5Re: Spotting base64 encoded JSON, certificates, and private keys
#6There is a Base64 quasi-fixed point: $ echo -n Vm0 | base64 Vm0w It can be extended indefinitely one character at a time, but there will always be some suffix.
(Because the output is necessarily 8/6 the size of the input, the suffix always adds 33% to the length.)
Re: Spotting base64 encoded JSON, certificates, and private keys
#7Re: Spotting base64 encoded JSON, certificates, and private keys
#8JWT does it as well.
Even in this example, they are double base64 encoding strings (the salt).
It's really too bad that there's really nothing quite like json. Everything speaks it and can write it. It'd be nice if something like protobuf was easier to write and read in a schemeless fashion.