|
|
|
|
|
by denys_potapov
929 days ago
|
|
eyJ... — is a beginning of base64 encoded JSON. The fact that I know it, and see it in standards make me feel bad. I can't proof that this is wrong, but encoding one text format in other text format and wrapping it in third text format — seems wasteful and hacky. This relates not only to this specs, but rather to web development in general. |
|
Further, base64 doesn't actually encode strings, it encodes bytes. If you're doing cryptography on something, you want to have a canonical byte representation. Canonicalizing JSON itself is error-prone, whereas decoding b64 gives you the same bytes every time.