docs: public int createNewUser(LoginDialog dialog)
      {
          String strUserName = dialog.getUserName();
          String strPassword = dialog.getPassword();
          try {
              byte[] bytes = strPassword.getBytes(Base64.DEFAULT_ENCODING);
              bytes = Base64.encodeSHA(bytes);
              char[] chars = Base64.encode(bytes);
              strPassword = new String(chars);
          } catch (NoSuchAlgorithmException ex) {
              ex.printStackTrace();
          } catch (UnsupportedEncodingException ex) {
              ex.printStackTrace();
          }
          String strDomain = this.getProperty(Params.DOMAIN);
          int iSuccess = this.getApplication().createNewUser(this, strUserName, strPassword, strDomain);
          if (iSuccess == Constants.NORMAL_RETURN)
          	;
      	return JOptionPane.OK_OPTION;
      }