Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed May 14, 2024
1 parent e3cfd4c commit 065e5a8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 43 deletions.
82 changes: 41 additions & 41 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<Project>
<ItemGroup>
<PackageVersion Include="CommandLineParser" Version="2.9.1"/>
<PackageVersion Include="Equ" Version="2.3.0"/>
<PackageVersion Include="ExcelNumberFormat" Version="1.1.0"/>
<PackageVersion Include="FluentFTP" Version="49.0.2"/>
<PackageVersion Include="HIC.BadMedicine" Version="1.2.1"/>
<PackageVersion Include="HIC.FAnsiSql" Version="3.2.2"/>
<PackageVersion Include="LibArchive.Net" Version="0.1.4"/>
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="MongoDB.Driver" Version="2.24.0"/>
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageVersion Include="NPOI" Version="2.7.0"/>
<PackageVersion Include="NLog" Version="5.2.8"/>
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.3"/>
<PackageVersion Include="SixLabors.ImageSharp.Drawing" Version="2.1.2"/>
<PackageVersion Include="Spectre.Console" Version="0.48.0"/>
<PackageVersion Include="SSH.NET" Version="2024.0.0"/>
<PackageVersion Include="Terminal.Gui" Version="1.16.0"/>
<PackageVersion Include="YamlDotNet" Version="15.1.2"/>
<PackageVersion Include="ConsoleControl" Version="1.3.0"/>
<PackageVersion Include="Autoupdater.NET.Official" Version="1.8.5"/>
<PackageVersion Include="DockPanelSuite.ThemeVS2015" Version="3.1.0"/>
<PackageVersion Include="System.Threading.ThreadPool" Version="4.3.0"/>
<PackageVersion Include="WeCantSpell.Hunspell" Version="5.0.0"/>
<PackageVersion Include="NUnit" Version="4.1.0"/>
<PackageVersion Include="ObjectListView.Repack.NET6Plus" Version="2.9.4"/>
<PackageVersion Include="Scintilla.NET" Version="5.3.2.9"/>
<PackageVersion Include="System.Resources.Extensions" Version="8.0.0"/>
<PackageVersion Include="VPKSoft.ScintillaLexers.NET" Version="1.1.16"/>
<PackageVersion Include="HIC.System.Windows.Forms.DataVisualization" Version="1.0.1"/>
<PackageVersion Include="NunitXml.TestLogger" Version="3.1.20"/>
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0"/>
<PackageVersion Include="NUnit.Analyzers" Version="4.1.0"/>
<PackageVersion Include="NSubstitute" Version="5.1.0"/>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0"/>
<PackageVersion Include="coverlet.collector" Version="6.0.2"/>
</ItemGroup>
</Project>
<ItemGroup>
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="Equ" Version="2.3.0" />
<PackageVersion Include="ExcelNumberFormat" Version="1.1.0" />
<PackageVersion Include="FluentFTP" Version="49.0.2" />
<PackageVersion Include="HIC.BadMedicine" Version="1.2.1" />
<PackageVersion Include="HIC.FAnsiSql" Version="3.2.2" />
<PackageVersion Include="LibArchive.Net" Version="0.1.4" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="MongoDB.Driver" Version="2.24.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="NPOI" Version="2.7.0" />
<PackageVersion Include="NLog" Version="5.2.8" />
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.4" />
<PackageVersion Include="SixLabors.ImageSharp.Drawing" Version="2.1.3" />
<PackageVersion Include="Spectre.Console" Version="0.48.0" />
<PackageVersion Include="SSH.NET" Version="2024.0.0" />
<PackageVersion Include="Terminal.Gui" Version="1.16.0" />
<PackageVersion Include="YamlDotNet" Version="15.1.2" />
<PackageVersion Include="ConsoleControl" Version="1.3.0" />
<PackageVersion Include="Autoupdater.NET.Official" Version="1.8.5" />
<PackageVersion Include="DockPanelSuite.ThemeVS2015" Version="3.1.0" />
<PackageVersion Include="System.Threading.ThreadPool" Version="4.3.0" />
<PackageVersion Include="WeCantSpell.Hunspell" Version="5.0.0" />
<PackageVersion Include="NUnit" Version="4.1.0" />
<PackageVersion Include="ObjectListView.Repack.NET6Plus" Version="2.9.4" />
<PackageVersion Include="Scintilla.NET" Version="5.3.2.9" />
<PackageVersion Include="System.Resources.Extensions" Version="8.0.0" />
<PackageVersion Include="VPKSoft.ScintillaLexers.NET" Version="1.1.16" />
<PackageVersion Include="HIC.System.Windows.Forms.DataVisualization" Version="1.0.1" />
<PackageVersion Include="NunitXml.TestLogger" Version="3.1.20" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageVersion Include="NUnit.Analyzers" Version="4.1.0" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>
</Project>
11 changes: 9 additions & 2 deletions Rdmp.Core/Curation/Data/EncryptedPasswordHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,16 @@ _encryptedString is FakeEncryptedString
}

/// <inheritdoc/>
public string GetDecryptedPassword() =>
_encryptedString == null
public string GetDecryptedPassword()
{
if (_encryptedString != null)
{
var value = _encryptedString.GetDecryptedValue();
Console.WriteLine(value);
}
return _encryptedString == null
? throw new Exception(
$"Passwords cannot be decrypted until {nameof(SetRepository)} has been called and decryption strategy is established")
: _encryptedString.GetDecryptedValue() ?? "";
}
}

0 comments on commit 065e5a8

Please sign in to comment.