PyFunceble/helpers.py
def _hash_data(self, algo):
        """
        Get hash of the given data.

        :param algo: The algorithm to use.
        :type algo: str
        """

        # We het the algorithm function.
        hash_data = getattr(hashlib, algo)()

        # We set the data into our hashlib.
        hash_data.update(self.data)

        # And we extract and return the hash.
        return hash_data.hexdigest()
def _hash_data(self, algo):
        # We het the algorithm function.
        hash_data = getattr(hashlib, algo)()

        # We set the data into our hashlib.
        hash_data.update(self.data)

        # And we extract and return the hash.
        return hash_data.hexdigest()
def _hash_data ( self , algo ) : # We het the algorithm function. hash_data = getattr ( hashlib , algo ) ( ) # We set the data into our hashlib. hash_data . update ( self . data ) # And we extract and return the hash. return hash_data . hexdigest ( )
Get hash of the given data.

        :param algo: The algorithm to use.
        :type algo: str
Get hash of the given data .