lib/algorithms/hashing_algs.py
def tiger192(string, salt=None, front=False, back=False, **placeholder):
    """
      Hash a password using Tiger192

      > :param string: string to be hashed into Tiger192
      > :return: a Tiger192 hash

      Example:
        >>> tiger192("test")
        8d1fd829fc83b37af1e5ba697ce8680d1d8bc430d76682f1
    """
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)
    if salt is not None and front and not back:
        obj = tiger.hash(salt + string)
    elif salt is not None and back and not front:
        obj = tiger.hash(string + salt)
    else:
        obj = tiger.hash(string)
    return obj.lower()

      Hash a password using Tiger192

      > :param string: string to be hashed into Tiger192
      > :return: a Tiger192 hash

      Example:
        >>> tiger192("test")
        8d1fd829fc83b37af1e5ba697ce8680d1d8bc430d76682f1
    
Hash a password using Tiger192
> :param string: string to be hashed into Tiger192
> :return: a Tiger192 hash
Hash a password using Tiger192 > : param string : string to be hashed into Tiger192 > : return : a Tiger192 hash
def tiger192(string, salt=None, front=False, back=False, **placeholder):
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)
    if salt is not None and front and not back:
        obj = tiger.hash(salt + string)
    elif salt is not None and back and not front:
        obj = tiger.hash(string + salt)
    else:
        obj = tiger.hash(string)
    return obj.lower()
def tiger192 ( string , salt = None , front = False , back = False , ** placeholder ) : if type ( string ) is unicode : string = lib . settings . force_encoding ( string ) if salt is not None and front and not back : obj = tiger . hash ( salt + string ) elif salt is not None and back and not front : obj = tiger . hash ( string + salt ) else : obj = tiger . hash ( string ) return obj . lower ( )
Hash a password using Tiger192
> :param string: string to be hashed into Tiger192
> :return: a Tiger192 hash
Hash a password using Tiger192 > : param string : string to be hashed into Tiger192 > : return : a Tiger192 hash
"""
      Hash a password using Tiger192

      > :param string: string to be hashed into Tiger192
      > :return: a Tiger192 hash

      Example:
        >>> tiger192("test")
        8d1fd829fc83b37af1e5ba697ce8680d1d8bc430d76682f1
    """
string
salt
front
back
examples
None