def salt(self):
        """
        Generates a salt via pgcrypto.gen_salt('algorithm').
        """
        cursor = connections[PGCRYPTOAUTH_DATABASE].cursor()
        cursor.execute("SELECT gen_salt('%s')" % PGCRYPTOAUTH_ALGORITHM)
        return cursor.fetchall()[0][0]
def salt ( self ) : cursor = connections [ PGCRYPTOAUTH_DATABASE ] . cursor ( ) cursor . execute ( "SELECT gen_salt('%s')" % PGCRYPTOAUTH_ALGORITHM ) return cursor . fetchall ( ) [ 0 ] [ 0 ]
Generates a salt via pgcrypto.gen_salt('algorithm').