Package cx.fbn.nevernote.dialog

Examples of cx.fbn.nevernote.dialog.EnDecryptDialog


        return;
      }
    }
   
   
    EnDecryptDialog dialog = new EnDecryptDialog();
    dialog.setHint(hint);
    while (plainText == null || !dialog.okPressed()) {
      dialog.exec();
      if (!dialog.okPressed()) {
        return;
      }
      plainText = crypt.decrypt(text, dialog.getPassword().trim(), 64);
      if (plainText == null) {
        QMessageBox.warning(this, tr("Incorrect Password"), tr("The password entered is not correct"));
      }
    }
    Pair<String,String> passwordPair = new Pair<String,String>();
    passwordPair.setFirst(dialog.getPassword());
    passwordPair.setSecond(dialog.getHint());
    Global.passwordSafe.put(slot, passwordPair);
//    removeEncryption(id, plainText.replaceAll("\n", "<br/>"), dialog.permanentlyDecrypt(), slot);
    removeEncryption(id, plainText, dialog.permanentlyDecrypt(), slot);
    if (dialog.rememberPassword()) {
      Pair<String, String> pair = new Pair<String,String>();
      pair.setFirst(dialog.getPassword());
      pair.setSecond(dialog.getHint());
      Global.passwordRemember.add(pair);
    }

  }
View Full Code Here

TOP

Related Classes of cx.fbn.nevernote.dialog.EnDecryptDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.