Question: Shortest possible shortuuid encoding?
Opened this issue · 1 comments
mecampbellsoup commented
Without dipping below the amount of entropy in a uuid.UUID4
, what is the fewest number of base57-encoded characters we could encode to? Is this documented anywhere? If not, do you think it would be a useful thing to mention?
skorokithakis commented
Some simple math should get you the number of base57 digits you need to represent 128 bits: 128/log2(57) = 22 digits (which is the length of a shortuuid by default, but maybe that's not documented explicitly).