Creating the Hash for Short URLs June 14, 2017 The hashing function is used to generate random strings of six characters, that can be numbers or upper and lowercase letters. We need to make sure that a string is