message: add more valid characters to bip38 tool
diff: // Copyright (c) 2011-2014 The Bitcoin developers
  // Copyright (c) 2014-2015 The Dash developers
  -// Copyright (c) 2015-2017 The PIVX developers
  +// Copyright (c) 2015-2016 The Darknet developers
  // Distributed under the MIT/X11 software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  @@ -96,15 +96,21 @@ void Bip38ToolDialog::on_pasteButton_ENC_clicked()
  setAddress_ENC(QApplication::clipboard()->text());
  }
  -QString specialChar = "!#$%&'()*+,-./:;<=>?`{|}~";
  -QString validChar = "123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + specialChar;
  -bool isValidPassphrase(QString strPassphrase)
  +QString specialChar = "\"@!#$%&'()*+,-./:;<=>?`{|}~^_[]\\";
  +QString validChar = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + specialChar;
  +bool isValidPassphrase(QString strPassphrase, QString& strInvalid)
  {
  for(int i = 0; i < strPassphrase.size(); i++)
  {
  if (!validChar.contains(strPassphrase[i], Qt::CaseSensitive))
  + {
  + if(QString("\"'").contains(strPassphrase[i]))
  + continue;
  +
  + strInvalid = strPassphrase[i];
  return false;
  }
  + }
  return true;
  }
  @@ -115,10 +121,11 @@ void Bip38ToolDialog::on_encryptKeyButton_ENC_clicked()
  return;
  QString qstrPassphrase = ui->passphraseIn_ENC->text();
  - if(!isValidPassphrase(qstrPassphrase))
  + QString strInvalid;
  + if(!isValidPassphrase(qstrPassphrase, strInvalid))
  {
  ui->statusLabel_ENC->setStyleSheet("QLabel { color: red; }");
  - ui->statusLabel_ENC->setText(tr("The entered passphrase is invalid.") + QString(" ") + tr("Allowed: 0-9,a-z,A-Z,") + specialChar);
  + ui->statusLabel_ENC->setText(tr("The entered passphrase is invalid. ") + strInvalid + QString(" is not valid") + QString(" ") + tr("Allowed: 0-9,a-z,A-Z,") + specialChar);
  return;
  }
  