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

Description Usage Arguments Value

View source: R/hash.R

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


hashids documentation built on May 1, 2019, 10:53 p.m.