What is the smallest way to store a UUID that is human readable?
-
12-09-2019 - |
Question
What is the smallest way to store a UUID that is human readable and widely database compatible?
I am thinking a char array of some sort using hex values?
Solution
As common approach, i think that encoding the binary data (16 bytes) as Base64 could be what you want.
OTHER TIPS
Use Base-85 encoding to store the UUID as 20 US-ASCII characters.
You might find the latest podcast relevant:
You want Base64 if it is going to be in any kind of computer representation. Base85 if you can figure out a way around putting it in a URL. See: http://en.wikipedia.org/wiki/Base64 and http://en.wikipedia.org/wiki/Ascii85
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow