changed hash output from hex to base64