Package com.avaje.tests.basic.encrypt

Examples of com.avaje.tests.basic.encrypt.BasicEncryptKey


  @Test
  public void test() {

    SimpleAesEncryptor e = new SimpleAesEncryptor();

    EncryptKey key = new BasicEncryptKey("hello");

    byte[] data = "test123".getBytes();

    byte[] ecData = e.encrypt(data, key);
    System.out.println(Arrays.toString(ecData));
View Full Code Here

TOP

Related Classes of com.avaje.tests.basic.encrypt.BasicEncryptKey

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.