String algorithm = getConfiguration().getString(
SecurityService.SECURE_PASSWORDS_ALGORITHM_KEY,
SecurityService.SECURE_PASSWORDS_ALGORITHM_DEFAULT);
CryptoService cs = TurbineCrypto.getService();
if (cs != null && (secure.equals("true") || secure.equals("yes")))
{
try
{
CryptoAlgorithm ca = cs.getCryptoAlgorithm(algorithm);
ca.setSeed(salt);
String result = ca.encrypt(password);