compat with hmac, base64