def encryptAES(s):
 key = helpers.randomKey()
 cipher = AES.new(key)
 encrypted = EncodeAES(cipher, s)
 return (encrypted, key)

def encryptAES ( s ) : key = helpers . randomKey ( ) cipher = AES . new ( key ) encrypted = EncodeAES ( cipher , s ) return ( encrypted , key )
generates a random aes key .