Dear ladies and sirs.
The standard string representation of GUID takes about 36 characters. Which is very nice, but also really wasteful. I am wondering, how to encode it in the shortest possible way using all the ASCII characters in the range 33-127. The naive implementation produces 22 characters, simply because 128 bits / 6 bits yields 22.
Huffman encoding is my second best, the only question is how to choose the codes....
Any more ideas?
Thanks.
P.S.
The encoding must be lossless, of course.