update function encryptId on Zing