enforce_min_length {hashids} | R Documentation |
Enforces hashid minimum length by padding the hashid with additional characters.
enforce_min_length(encoded, min_length, alphabet, guards, values_hash)
encoded |
encoded hashid |
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 |
hashid with padded characters to insure minimum length