lib/algorithms/hashing_algs.py
def blake224(string, salt=None, front=False, back=False, **placeholder):
    """
      Create a Blake224 hash from given string

      > :param string: string to be hashed
      > :return: a blake224 hash

      Example:
        >>> blake224("test")
        e9543bfe985642bc30d41903161b2252a014deca64a9af27fc0c111f
    """
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)

    obj = blake.BLAKE(224)
    if salt is not None and front and not back:
        digest = obj.hexdigest(salt + string)
    elif salt is not None and back and not front:
        digest = obj.hexdigest(string + salt)
    else:
        digest = obj.hexdigest(string)
    return digest

      Create a Blake224 hash from given string

      > :param string: string to be hashed
      > :return: a blake224 hash

      Example:
        >>> blake224("test")
        e9543bfe985642bc30d41903161b2252a014deca64a9af27fc0c111f
    
Create a Blake224 hash from given string
> :param string: string to be hashed
> :return: a blake224 hash
Create a Blake224 hash from given string > : param string : string to be hashed > : return : a blake224 hash
def blake224(string, salt=None, front=False, back=False, **placeholder):
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)
    obj = blake.BLAKE(224)
    if salt is not None and front and not back:
        digest = obj.hexdigest(salt + string)
    elif salt is not None and back and not front:
        digest = obj.hexdigest(string + salt)
    else:
        digest = obj.hexdigest(string)
    return digest
def blake224 ( string , salt = None , front = False , back = False , ** placeholder ) : if type ( string ) is unicode : string = lib . settings . force_encoding ( string ) obj = blake . BLAKE ( 224 ) if salt is not None and front and not back : digest = obj . hexdigest ( salt + string ) elif salt is not None and back and not front : digest = obj . hexdigest ( string + salt ) else : digest = obj . hexdigest ( string ) return digest
Create a Blake224 hash from given string
> :param string: string to be hashed
> :return: a blake224 hash
Create a Blake224 hash from given string > : param string : string to be hashed > : return : a blake224 hash
"""
      Create a Blake224 hash from given string

      > :param string: string to be hashed
      > :return: a blake224 hash

      Example:
        >>> blake224("test")
        e9543bfe985642bc30d41903161b2252a014deca64a9af27fc0c111f
    """
string
salt
front
back
examples
None