Changed digest from base64 to hex.