@Test void testSymmetrical() { CryptoEngine cryptoEngine = CryptoEngine.pbe3des("PASSWORD"); byte[] encrypted = cryptoEngine.encryptString("Jodd"); assertEquals("Jodd", cryptoEngine.decryptString(encrypted)); }
@Test void testThreefish() { CryptoEngine cryptoEngine = CryptoEngine.threefish("PASSWORD"); byte[] encrypted = cryptoEngine.encryptString("Jodd"); assertEquals("Jodd", cryptoEngine.decryptString(encrypted)); }