// "Encrypt password", is not an real encryption because "Encryptor"
// generate a digest
String encryptedPassword = pe.encryptPassword(TEXT_TO_ENCRYPT);
System.out.printf("testPasswordEncryptionUsingConfigurableEncryptor : '%s' become '%s'\n", TEXT_TO_ENCRYPT, encryptedPassword);
// Valid "encrypted" password
Assert.assertTrue(pe.checkPassword(TEXT_TO_ENCRYPT, encryptedPassword));
}
/**
* This test show how encrypt a text using a basic encryptor (using symetric
* key)