In the emerging era of internet of things (IoT), ubiquitous sensors continuously collect, consume, store, and communicate an astonishing volume of information, which are becoming increasingly vulnerable to theft and misuse. Modern software crypto systems are powerful but require extensive computational infrastructure for implementing ciphering algorithms making it difficult to be adopted by IoT edge sensors that operate with limited hardware resources and at miniscule energy budgets. Here we propose, and experimentally demonstrate a low-power, biomimetic, crypto system integrated with IoT edge sensor based on an array of atomically thin, multifunctional, and programmable MoS2 field effect transistors (FETs). We show that the information received by a MoS2 photodetector and encrypted by a population of MoS2 based reconfigurable artificial neural encoders is secure from an eavesdropper with finite resources. We also show that our all-in-one IoT platform consumes miniscule energy in the range of tens to hundreds of pico Joules, has a small hardware footprint, and combines sensing, non-volatile storage, and security, for the first time.