if (auth.password != null && auth.password.startsWith("{") && auth.password.endsWith("}"))
{
try
{
final Cryptor cryptor = CryptorFactory.getCryptor();
auth.password = cryptor.decrypt(auth.password.substring(1, auth.password.length() - 1));
}
catch (final Exception ex)
{
throw new FileSystemException("Unable to decrypt password", ex);
}