Пример #1
0
 @Test
 public void testEncrypt() {
   for (int i = 0; i < 10000; i++) {
     String msg1 = U.copyNtimes("x", i);
     byte[] enc = Crypto.encrypt(msg1.getBytes());
     byte[] dec = Crypto.decrypt(enc);
     String msg2 = new String(dec);
     eq(msg2, msg1);
   }
 }