#NEWLINE# def _encrypt( self , clearvalue , salt = None ) : #NEWLINE# #INDENT# if ( salt is None ) : #NEWLINE# #INDENT# salt = '' . join ( Random ( ) . sample ( ( string . letters + string . digits ) , 2 ) ) #NEWLINE# #UNINDENT# return crypt . crypt ( clearvalue , salt )