input: Write a python function to encrypt a message using AES encryption.
  assert encrypt('mykey123', 'My secret message') == 'r+Q5T1FKhD5D2gqRj+0f/A==' 
  assert encrypt('anotherkey', 'Another message') == 'VL0b4f9AV6nYx2QUU0J9iA==' 
  assert encrypt('samplekey', 'Sample Text') == 'xm1i7C2c+R2OXFz18jvtxA=='
output: from Crypto.Cipher import AES
  from Crypto.Util.Padding import pad
  import base64
  
  def encrypt(key, message):
      cipher = AES.new(key.encode('utf-8'), AES.MODE_ECB)
      padded_message = pad(message.encode('utf-8'), AES.block_size)
      encrypted_message = cipher.encrypt(padded_message)
      return base64.b64encode(encrypted_message).decode('utf-8')