#NEWLINE# def encode( self , password , salt ) : #NEWLINE# #INDENT# crypt = self . _load_library ( ) #NEWLINE# assert ( len ( salt ) == 2 ) #NEWLINE# data = crypt . crypt ( password , salt ) #NEWLINE# return ( '%s$%s$%s' % ( self . algorithm , '' , data ) )