lib/algorithms/hashing_algs.py
def blowfish(string, **placeholder):
    """
      Create a blowfish hash using bcrypt

      > :param string: string to generate a Blowfish hash from
      > :return: Blowfish hash

      Example:
        >>> blowfish("test")
        $2b$12$fSX/dvlx3dJGkGYKSbBbLOTOhzqj8xQ2krOtu2QkHNeJiYTC0B/ji
    """
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)

    return bcrypt.hashpw(str(string), bcrypt.gensalt())

      Create a blowfish hash using bcrypt

      > :param string: string to generate a Blowfish hash from
      > :return: Blowfish hash

      Example:
        >>> blowfish("test")
        $2b$12$fSX/dvlx3dJGkGYKSbBbLOTOhzqj8xQ2krOtu2QkHNeJiYTC0B/ji
    
Create a blowfish hash using bcrypt
> :param string: string to generate a Blowfish hash from
> :return: Blowfish hash
Create a blowfish hash using bcrypt > : param string : string to generate a Blowfish hash from > : return : Blowfish hash
def blowfish(string, **placeholder):
    if type(string) is unicode:
        string = lib.settings.force_encoding(string)
    return bcrypt.hashpw(str(string), bcrypt.gensalt())
def blowfish ( string , ** placeholder ) : if type ( string ) is unicode : string = lib . settings . force_encoding ( string ) return bcrypt . hashpw ( str ( string ) , bcrypt . gensalt ( ) )
Create a blowfish hash using bcrypt
> :param string: string to generate a Blowfish hash from
> :return: Blowfish hash
Create a blowfish hash using bcrypt > : param string : string to generate a Blowfish hash from > : return : Blowfish hash
"""
      Create a blowfish hash using bcrypt

      > :param string: string to generate a Blowfish hash from
      > :return: Blowfish hash

      Example:
        >>> blowfish("test")
        $2b$12$fSX/dvlx3dJGkGYKSbBbLOTOhzqj8xQ2krOtu2QkHNeJiYTC0B/ji
    """
string
examples
>>> blowfish("test")
$2b$12$fSX/dvlx3dJGkGYKSbBbLOTOhzqj8xQ2krOtu2QkHNeJiYTC0B/ji
>>> blowfish ( " test " ) $2b$12$fSX / dvlx3dJGkGYKSbBbLOTOhzqj8xQ2krOtu2QkHNeJiYTC0B / ji