Package dubious.sub.goobi.helper.encryption

Examples of dubious.sub.goobi.helper.encryption.DesEncrypter.encrypt()


    try {
      DesEncrypter encrypter = new DesEncrypter();
      BenutzerDAO dao = new BenutzerDAO();
      List<Benutzer> myBenutzer = dao.search("from Benutzer");
      for (Benutzer ben : myBenutzer) {
        String passencrypted = encrypter.encrypt(ben.getPasswort());
        ben.setPasswort(passencrypted);
        dao.save(ben);
      }
      Helper.setMeldung(null, "", "passwords successful ciphered");
    } catch (Exception e) {
View Full Code Here


    return decrypted;
  }

  public void setPasswortCrypt(String inpasswort) {
    DesEncrypter encrypter = new DesEncrypter();
    String encrypted = encrypter.encrypt(inpasswort);
    this.passwort = encrypted;
  }

  public boolean isIstAktiv() {
    return this.istAktiv;
View Full Code Here

      if (ConfigMain.getBooleanParameter("ldap_use")) {
        Ldap myldap = new Ldap();
        return myldap.isUserPasswordCorrect(this, inPasswort);
      } else {
        DesEncrypter encrypter = new DesEncrypter();
        String encoded = encrypter.encrypt(inPasswort);
        return this.passwort.equals(encoded);
      }
    }
  }
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.