Felsökning.Collections.Generic
1.0.0
An assembly that contains collections that are protected by the .NET Core Data Protector.
Install-Package Felsökning.Collections.Generic -Version 1.0.0
dotnet add package Felsökning.Collections.Generic --version 1.0.0
<PackageReference Include="Felsökning.Collections.Generic" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Felsökning.Collections.Generic --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Single class is exposed, ProtectedList, which uses DataProtector to encrypt the contents. The decrypted contents are only available through Action<string> or Predicate<string> calls.
using (ProtectedList protectedList = new ProtectedList { "something", "nothing", "more stuff" })
{
protectedList.Add(item: "Some more testing....");
protectedList.ForEach(s =>
{
Console.WriteLine(value: s);
});
string foundItem = protectedList.Find(x => x.Contains(value: "something"));
List<string> foundItems = protectedList.FindAll(y => y.Contains("g"));
bool wasFound = protectedList.Contains(value: "Some more testing....");
}
Single class is exposed, ProtectedList, which uses DataProtector to encrypt the contents. The decrypted contents are only available through Action<string> or Predicate<string> calls.
using (ProtectedList protectedList = new ProtectedList { "something", "nothing", "more stuff" })
{
protectedList.Add(item: "Some more testing....");
protectedList.ForEach(s =>
{
Console.WriteLine(value: s);
});
string foundItem = protectedList.Find(x => x.Contains(value: "something"));
List<string> foundItems = protectedList.FindAll(y => y.Contains("g"));
bool wasFound = protectedList.Contains(value: "Some more testing....");
}
Release Notes
Initial release.
Dependencies
-
.NETCoreApp 2.0
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETCoreApp 2.1
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETCoreApp 2.2
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETCoreApp 3.0
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETCoreApp 3.1
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETFramework 4.6.1
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETFramework 4.6.2
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETFramework 4.7
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETFramework 4.7.1
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETFramework 4.7.2
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETFramework 4.8
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETStandard 2.0
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
-
.NETStandard 2.1
- Microsoft.AspNetCore.DataProtection (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection (>= 3.1.1)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 140 | 1/27/2020 |