Generate Short Unique YouTube-Like IDs (Hashes) from Integers
Calculate the ascii value number of a character
Converts a base 16 string to a base 10 number. Because I couldn't get ...
Converts a base 10 number to base 16 number. Because I couldn't get R'...
Decodes a hashid into the original integer or integer vector
Decodes a hashid into the original hexidecimal number
Encodes an integer or integer vector into a hashid string. All numbers...
Encodes a hexademical number into a hashid
Enforces hashid minimum length by padding the hashid with additional c...
Maps an integer to a string. Generated string will be inversely propor...
Default Values for hashid settings
A function to create a hashid settings list.
Permutes the characters in a string based on an inputted salt string.
Splits a string based on a set of splitting characters
Unhashes a string to an integer based on alphabet.
An R port of the hashids library. hashids generates YouTube-like hashes from integers or vector of integers. Hashes generated from integers are relatively short, unique and non-seqential. hashids can be used to generate unique ids for URLs and hide database row numbers from the user. By default hashids will avoid generating common English cursewords by preventing certain letters being next to each other. hashids are not one-way: it is easy to encode an integer to a hashid and decode a hashid back into an integer.
Useful links