What is the most efficient way to encode an arbitrary GUID into readable ASCII (33-127)?

后端 未结 8 683
自闭症患者
自闭症患者 2020-11-30 22:08

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

8条回答
  •  我在风中等你
    2020-11-30 22:20

    Assuming that all of your GUIDs are being generated by the same algorithm, you can save 4 bits by not encoding the algorithm nibble, before applying any other encoding :-|

提交回复
热议问题