Qual é o menor caminho para armazenar um UUID que é legível?
-
12-09-2019 - |
Pergunta
O que é o menor caminho para armazenar um UUID que é legível e amplamente banco de dados compatível?
Estou pensando uma matriz de char de algum tipo usando valores hexadecimais?
Solução
As common approach, i think that encoding the binary data (16 bytes) as Base64 could be what you want.
Outras dicas
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
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow