Package com.avaje.ebeaninternal.server.type

Examples of com.avaje.ebeaninternal.server.type.SimpleAesEncryptor.encryptString()


    String s = new String(deData);

    System.out.println(s);

    Timestamp t = new Timestamp(System.currentTimeMillis());
    byte[] ecTimestamp = e.encryptString(t.toString(), key);
    System.out.println(t + " encrypted -> " + Arrays.toString(ecTimestamp));

    String tsFormat = e.decryptString(ecTimestamp, key);
    Timestamp t1 = Timestamp.valueOf(tsFormat);
    Assert.assertEquals(t, t1);
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.