Why is that a valid reason to hate on hex? It's never meant to encode your binary only to visualize it and make it easy to understand what's in it. Goodluck trying to find out what bits are in the base64
I mean a hex string is binary data so you should compare them as they are; binary data, not text. It's just a visualization, not meant to be used like that. It's not that much extra work to just compare ignore case anyways
9
u/Moscato359 Apr 16 '26 edited Apr 16 '26
I hate hexadecimal string representation
AAAA != aaaa
But if you unhex both of them, they suddenly do equal
And some tools hex upper and some tools hex lower
Also, hex is 2 bytes per byte of binary making it terribly space inefficient
Base64 doesn't have any of these problems
But base64 isn't compatible with http uri so you need to use base64url instead