def METHOD_NAME(update, context):
    user = update.message.from_user
    payload = {
        "data": {
            "header": "my secret header",
            "message": update.message.text,
            "password": passwords[user]
        },
        "keys": {}
    }
    # Delete the password stored
    del passwords[user]
    r = requests.post(ENCRYPT_ENDPOINT, json=payload)
    if not r or r.status_code != 200:
        update.message.reply_text("There has been an error while encrypting"
                                  " the message. Please retry")
    ciphertext = base64.b64encode(r.text.encode())
    update.message.reply_text(ciphertext.decode())
    return ConversationHandler.END