writing new conversion to base 64 function
updated the base 64 conversion function to actually convert the hash to base64 instead of the random junk i had before