enforce_min_length: Enforces hashid minimum length by padding the hashid with additional characters.
Description
Enforces hashid minimum length by padding the hashid with additional characters.
Usage
enforce_min_length(encoded, min_length, alphabet, guards, values_hash)
Arguments
min_length
minimum length required for hashid
alphabet
set of letters used to generate hashid
guards
set of guards used to generate hashid
values_hash
value hashed used to select guard characters
Value
hashid with padded characters to insure minimum length