#NEWLINE# def encrypt( self , plaintext ) : #NEWLINE# #INDENT# if ( len ( plaintext ) != 16 ) : #NEWLINE# #INDENT# raise ValueError ( 'plaintext block must be 16 bytes' ) #NEWLINE# #UNINDENT# plaintext = _string_to_bytes ( plaintext ) #NEWLINE# return _bytes_to_string ( self . _aes . encrypt ( plaintext ) )