switched from base64 encoding to hex encoding
corrected typo