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);
}
}