uuid6 / new-uuid-encoding-techniques-ietf-draft

New UUID Encoding Techniques
4 stars 1 forks source link

Use the 129th and 130th bits for the Base32 checksum #12

Closed sergeyprokhorenko closed 2 months ago

kyzer-davis commented 2 months ago

You mean for Crockford's Base32 right? e.g Z0EMZBKXXG8X19V502GCJ7KBYR= using = as checksum (instead of the usual padding)

sergeyprokhorenko commented 2 months ago

Yes, for for Crockford's Base32. 26 symbols * 5 bits/symbol = 130 bits. But UUID length = 128 bits. Therefore Crockford's Base32 encoding has 2 excess bits that should be used for checksum.