Package org.platformlayer.service.nexus.utils

Examples of org.platformlayer.service.nexus.utils.NexusLdapPasswords.decrypt()


    String plaintext = "adminsecret";
    String ciphertext = "CIj2qAUHmLHvrlRXsW9Z2dfsGm0=";

    assertStructure(ciphertext);

    String decrypted = passwords.decrypt(ciphertext);

    assertEquals(plaintext, decrypted);
  }

  private void assertStructure(String ciphertext) throws IOException {
View Full Code Here


    String ciphertext = passwords.encrypt(plaintext);
    System.out.println("ciphertext = " + ciphertext);

    assertStructure(ciphertext);

    String decrypted = passwords.decrypt(ciphertext);

    assertEquals(plaintext, decrypted);
  }

}
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.