@classmethod
    def calculate_hmac(cls, params):
        encoded_params = cls.__encoded_params_for_signature(params)
        # Generate the hex digest for the sorted parameters using the secret.
        return hmac.new(cls.secret.encode(), encoded_params.encode(), sha256).hexdigest()
Calculate the HMAC of the given parameters in line with Shopify's rules for OAuth authentication.
dataset/ETHPy150Open Shopify/shopify_python_api/shopify/session.py/Session.calculate_hmac