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

后端 未结 8 665
自闭症患者
自闭症患者 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:35

    Use Base 85. See section 4.1. Why 85? of A Compact Representation of IPv6 Addresses

    An IPv6 address, like a GUID is made up of eight 16-bit pieces.

提交回复
热议问题