update password encode