crytography function change