Generate Short Unique YouTube-Like IDs (Hashes) from Integers


[Up] [Top]

Documentation for package ‘hashids’ version 0.9.0

Help Pages

ascii_val Calculate the ascii value number of a character
base16_to_dec Converts a base 16 string to a base 10 number. Because I couldn't get base R functions to work for big hex numbers.
decode Decodes a hashid into the original integer or integer vector
decode_hex Decodes a hashid into the original hexidecimal number
dec_to_base16 Converts a base 10 number to base 16 number. Because I couldn't get R's as.hexmode() to work for big integers.
DEFAULT_ALPHABET Default Values for hashid settings
DEFAULT_SEPS Default Values for hashid settings
encode Encodes an integer or integer vector into a hashid string. All numbers must be non-negative integers.
encode_hex Encodes a hexademical number into a hashid
enforce_min_length Enforces hashid minimum length by padding the hashid with additional characters.
hash Maps an integer to a string. Generated string will be inversely proportional to alphabet length.
hashid_defaults Default Values for hashid settings
hashid_settings A function to create a hashid settings list.
RATIO_GUARDS Default Values for hashid settings
RATIO_SEPARATORS Default Values for hashid settings
shuffle Permutes the characters in a string based on an inputted salt string.
split Splits a string based on a set of splitting characters
unhash Unhashes a string to an integer based on alphabet.