encryption in ESP32:

ESP32 AES Encryption using ESP-IDF for a string of any length