latest Post

New ask Hacker News story: Ask HN: Should we still Base64 encode?

Ask HN: Should we still Base64 encode?
3 by mcqueenjordan | 6 comments on Hacker News.
Base64-encoding incurs some overhead (storage and computation). For context, Base64-encoding is a mechanism to encode bytes (0-255) to a radix-64 alphabet (0-63), with '=' for padding. Base64 encoding is 4:3 output:input, so 33% overhead. Assumption: Many systems (modulo email) are 8-bit clean nowadays. As an example, many session tokens are base64 encoded, but if we know that these tokens will only interact with 8-bit clean systems, should we not avoid the overhead?

About Arsalan

Arsalan
Recommended Posts ×

0 comments:

Post a Comment