diff --git a/Dapplo.Config/Converters/StringEncryptionTypeConverter.cs b/Dapplo.Config/Converters/StringEncryptionTypeConverter.cs index 4a31e9d..8999151 100644 --- a/Dapplo.Config/Converters/StringEncryptionTypeConverter.cs +++ b/Dapplo.Config/Converters/StringEncryptionTypeConverter.cs @@ -171,7 +171,14 @@ public override object ConvertFrom(ITypeDescriptorContext context, System.Global string valueString = value as string; if (!string.IsNullOrWhiteSpace(valueString)) { - return Decrypt(valueString); + // Try to decrypt, ignore FormatException + try + { + return Decrypt(valueString); + } catch (FormatException) + { + return valueString; + } } if (valueString != null) {