def encryptAES_http_request(s, http_key):
 m = md5.new()
 m.update(http_key)
 http_key = m.hexdigest()
 http_key = str(http_key)
 cipher = AES.new(http_key)
 encrypted = EncodeAES(cipher, s)
 return (encrypted, http_key)

def encryptAES_http_request ( s , http_key ) : m = md5 . new ( ) m . update ( http_key ) http_key = m . hexdigest ( ) http_key = str ( http_key ) cipher = AES . new ( http_key ) encrypted = EncodeAES ( cipher , s ) return ( encrypted , http_key )
generates a aes 16 byte key from a http request of html page .