update the encrypt