4 ms·
The author mentions readability - if they care about it, they should eliminate all ambiguous characters like 0Oo1l.
by benterix 2y ago
The author mentions readability - if they care about it, they should eliminate all ambiguous characters like 0Oo1l.
- moebrowne 2y agoThey use Crockford Base32 encoding which does exactly that.
- benterix 2y agoI don't think so since the sample key they present in the big image contains many of these. The caption is "An example API key generated by github.com/gofrs/uuid and encoded with github.com/agentstation/uuidkey." - so something is wrong.
- alt227 2y agoYou need to look harder at the encoding standard. After generation all o are mapped to 0 and all l are mapped to 1 so yes there are 0 and 1 but there are never o and l.
- hdjjhhvvhga 2y agoAh, so you need to know that first, otherwise it's still ambiguous to people reading them.
- stby 2y agoBase 32 does that for them, it excludes the lower case letters and I L O U.