Changed base64 encoding to hexadecimal encoding