#NEWLINE# def aesEncrypt( data , key ) : #NEWLINE# #INDENT# cipher = Cipher . getInstance ( 'AES/CTR/NoPadding' ) #NEWLINE# skeySpec = SecretKeySpec ( key , 'AES' ) #NEWLINE# cipher . init ( Cipher . ENCRYPT_MODE , skeySpec , _iv ) #NEWLINE# return cipher . doFinal ( data ) . tostring ( )