Added the generate_hashed_string()

Added the generate_hashed_string() function to generate a multi-hashed string with random length. To help people leave bad practice like storing md5-hashed strings as passwords etc, we should provide a simple function for generating a slightly better hashed string with random storage length to make it  slightly harder to bruteforce.