I want encryption decryption of natural language model. I want to use natural language characters as key and text for my analysis work as below. How can i achieve that
from Crypto.Cipher import AES
import os
BLOCK_SIZE = 32
PADDING = '0'
pad = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * PADDING
EncodeAES = lambda c, s: c.encrypt(pad(s))
DecodeAES = lambda c, e: c.decrypt(e.rstrip(PADDING))
secret = u'ककककक..'
obj = AES.new(secret)
message = u'कककककककककककक'
encoded = EncodeAES(obj, message)
decoded = DecodeAES(obj, encoded)
print 'Decrypted string: ', decoded.rstrip('0')