JuTextEncryptor encryptor = JuSecurityUtils.buildEncryptor()
.password("secret")
.createTextEncryptor();
String encryptedString = encryptor.encrypt("String"); // The encrypted String will not be constant...
Assert.assertNotNull(encryptor.encrypt("String"));
Assert.assertEquals("String", encryptor.decrypt(encryptedString));
}
@Test
public void canDencryptText_usingBasicEncryptor() {