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

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

      Example:
        >>> blake384("test")
        97c456fb92567f27324497d1d41a8427eed77a1f3a1161faf49e40ebae44a7d1e2f9e8bdf7bc193ae9e37bebf50ece76
    """
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)

    obj = blake.BLAKE(384)
    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 bBlake384 hash from a given string

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

      Example:
        >>> blake384("test")
        97c456fb92567f27324497d1d41a8427eed77a1f3a1161faf49e40ebae44a7d1e2f9e8bdf7bc193ae9e37bebf50ece76
    
Create a bBlake384 hash from a given string
> :param string: string to be hashed
> :return: a blake384 hash
Create a bBlake384 hash from a given string > : param string : string to be hashed > : return : a blake384 hash
def blake384(string, salt=None, front=False, back=False, **placeholder):
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)
    obj = blake.BLAKE(384)
    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 blake384 ( string , salt = None , front = False , back = False , ** placeholder ) : if type ( string ) is unicode : string = lib . settings . force_encoding ( string ) obj = blake . BLAKE ( 384 ) 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 bBlake384 hash from a given string
> :param string: string to be hashed
> :return: a blake384 hash
Create a bBlake384 hash from a given string > : param string : string to be hashed > : return : a blake384 hash
"""
      Create a bBlake384 hash from a given string

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

      Example:
        >>> blake384("test")
        97c456fb92567f27324497d1d41a8427eed77a1f3a1161faf49e40ebae44a7d1e2f9e8bdf7bc193ae9e37bebf50ece76
    """
string
salt
front
back
examples
None