change the password encode method