Expand description
Links IDs are unique identifiers used in the links project to identify individual links.
A links ID is a randomly generated 40 bit / 5 byte integer. It is usually
encoded as an 8 character string, starting with a digit (0-9
) followed by
7 base 38 characters. The character set used for base 38 is a modified
nanoid-dictionary nolookalikesSafe
,
with 2 additional characters - X
and x
. The full charset is (in order):
6789BCDFGHJKLMNPQRTWXbcdfghjkmnpqrtwxz
.
Structs§
- Id
- The 40 bit ID used to identify links in links.
Enums§
- Conversion
Error - The error returned by fallible conversions into IDs.
Constants§
- BASE_
10_ CHARSET - The character set used for base 10 encoding (digits). Used by the first character of the Id string representation.
- BASE_
38_ CHARSET - The character set used for the base 38 encoding of the last 7 characters of the string representation of an Id.
- REVERSE_
CHARSET - Reverse base 38 character set used for decoding encoded IDs.
- REVERSE_
CHARSET_ BASE_ 38_ OFFSET - The offset from the ASCII value of a base 38 character to its index in
REVERSE_CHARSET
.