3 ms·
See also Douglas Crockford's Base 32: https://www.crockford.com/base32.html https://www.crockford.com/base32.html This takes the approach of allowing ambiguous
by re 2y ago
See also Douglas Crockford's Base 32: https://www.crockford.com/base32.html https://www.crockford.com/base32.html
This takes the approach of allowing ambiguous characters by decoding them to the same value, and also considers the problem of accidental obscenities.
- 38 2y agoI believe an implementation is here: https://godocs.io/encoding/base32 https://godocs.io/encoding/base32
- re 2y agoThat uses a different alphabet. https://www.rfc-editor.org/rfc/rfc4648.html#section-6 https://www.rfc-editor.org/rfc/rfc4648.html#section-6
- spintin 2y agoInteresting, I did different choices: 5-bit base-32 oi23456789 abcdefghkl mnpqrstuvw y o = 0 i = 1 j, x and z removed. I like that you can fit 6 characters in an 32-bit integer and still have to bits to spare... makes for compact usernames and network bandwidth.