add encryptData and decryptData function. (maybe it will be useful)