Add encryption function of stored data.