required software encryption in ESP8266-12E

How can i implement software encryption algorithm on ESP8266-12E wifi module via arduino IDE,because i want to use my arduino code for mass production but i need encryption so how can i do that because esp-8266-12E doesn't have hardware encryption so is it possible via software? kindly suggest me method and example thank you.

Find a library with the wanted encryption support.