Research Article

Power Adaptive Data Encryption for Energy-Efficient and Secure Communication in Solar-Powered Wireless Sensor Networks

Algorithm 2

ESCS() sudo-code.
() while 1 do
()  if    and    then
()   ;
()   invoke ECIES algorithm;
()  else
() if    and    then
()   ;
()   invoke AES algorithm;
() end if
() end if
() end while
() sleep(period);