code: public void setCurrentPasswordHashPassword(String newPassword) {
          this.passwordSalt = UUID.randomUUID().toString();
  
          try {
              this.currentPasswordHash = pwm.makePassword(new SecureUTF8String(newPassword),
                      masterPwdHashAccount, getPasswordSalt());
          } catch (Exception ignored) {}
          setStorePasswordHash(true);
      }
docs: This will salt and hash the password to store
  @param newPassword - the new password