Package org.teiid.core.crypto

Examples of org.teiid.core.crypto.SymmetricCryptor.decrypt()


    SymmetricCryptor clientCryptor = keyGenClient.getSymmetricCryptor(serverKey);
   
    String cleartext = "cleartext!"; //$NON-NLS-1$
   
    String ciphertext = serverCryptor.encrypt(cleartext);
    String cleartext2 = clientCryptor.decrypt(ciphertext);
   
    assertEquals(cleartext, cleartext2);
    assertTrue(!ciphertext.equals(cleartext));
  }
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.