enforce_min_length: Enforces hashid minimum length by padding the hashid with...

Description Usage Arguments Value

Description

Enforces hashid minimum length by padding the hashid with additional characters.

Usage

1
enforce_min_length(encoded, min_length, alphabet, guards, values_hash)

Arguments

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

Value

hashid with padded characters to insure minimum length


ALShum/hashids-r documentation built on May 5, 2019, 11:32 a.m.