encrypt update