Design and Implementation of Crypto-algorithms for Energy Systems