<s> from __future__ import absolute_import , unicode_literals <EOL> from Crypto . Cipher import AES <EOL> class WeChatCipher ( object ) : <EOL> def __init__ ( self , key ) : <EOL> self . cipher = AES . new ( key , AES . MODE_CBC , key [ : <NUM_LIT:16> ] ) <EOL> def encrypt ( self , plaintext ) : <EOL> return self . cipher . encrypt ( plaintext ) <EOL> def decrypt ( self , ciphertext ) : <EOL> return self . cipher . decrypt ( ciphertext ) </s>
