<sqids> ( alphabet min-length blocklist -- sqids )
Sqids: encode numbers into short, unique, URL-safe IDs

Prev:<default-sqids> ( -- sqids )
Next:sqids-encode ( sqids numbers -- str )


Vocabulary
sqids

Inputs
alphabeta string
min-lengthan integer from 0 to 255
blocklista sequence


Outputs
sqidsa sqids encoder


Word description
Builds a sqids encoder with the given configuration. The alphabet must contain at least three unique ASCII characters and is shuffled deterministically. The blocklist replaces the default and is filtered to contain only words of at least three characters that occur in the alphabet, ignoring case. Words are lowercased and duplicates removed.

Errors
alphabet-multibyte-char ( -- * )

alphabet-too-short ( -- * )

alphabet-duplicate-chars ( -- * )

invalid-min-length ( min-length -- * )


Definition


:: <sqids> ( alphabet min-length blocklist -- sqids )
alphabet validate-alphabet drop
min-length validate-min-length drop
alphabet sqids-shuffle min-length blocklist alphabet
filter-blocklist sqids boa ;