def knownPlaintext(known_key, random_plaintext):
 stallion = AES.new(known_key)
 encrypted_string = EncodeAES(stallion, random_plaintext)
 return encrypted_string

def knownPlaintext ( known_key , random_plaintext ) : stallion = AES . new ( known_key ) encrypted_string = EncodeAES ( stallion , random_plaintext ) return encrypted_string
uses key passed in to encrypt a random string which is used in a known plaintext attack to brute force its own key .