Package org.gudy.azureus2.ui.console.util

Examples of org.gudy.azureus2.ui.console.util.StringEncrypter.decrypt()


   */
  public boolean authenticate(String password) {
    StringEncrypter encrypter;
    try {
      encrypter = new StringEncrypter(StringEncrypter.DES_ENCRYPTION_SCHEME);
      return encrypter.decrypt(encryptedPassword).equals(password);
    } catch (EncryptionException e) {
      throw new AzureusCoreException("Unable to decrypt password", e);
    }
  }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.