Move the md5 function to util