items = [data["sql"], data["params"]]
// Replace lines endings with spaces to preserve the hash value
// even when the browser normalizes \r\n to \n in inputs.
items = [" ".join(force_text(item).splitlines()) for item in items]
return hmac.new(settings.SECRET_KEY.encode("utf-8"),
"".join(items).encode("utf-8"), hashlib.sha1).hexdigest()
@property