def _generate_hmac(self, session_id): return hmac.new(session_id, self._secret, hashlib.sha256).hexdigest()