fm.Extensions.DataProtection NuGet Package

Makes using the Microsoft.AspNet.DataProtection package more convenient, especially when using IAuthenticatedEncryptor

Commonly used types:
AuthenticatedEncryptorExtensions
EncryptorEncoding
SecretKey

Examples:
SecretKey key = new SecretKey(new Secret(EncryptorEncoding.UTF8.GetBytes("Password")), this.GetRequiredService<IAuthenticatedEncryptorFactory>());
IAuthenticatedEncryptor encryptor = key.CreateEncryptor();

encryptor.DecryptToString(encryptor.Encrypt("Input", "AAD"), "AAD").ShouldBe("Input");.




Got any fm.Extensions.DataProtection Question?





Info

Version: 5.0.0
Author(s): freeMartin
Last Update: Wednesday, March 27, 2024
.NET Fiddle: Create the first Fiddle
Project Url: https://www.nuget.org/packages/fm.Extensions.DataProtection
NuGet Url: https://www.nuget.org/packages/fm.Extensions.DataProtection


Install
Install-Package fm.Extensions.DataProtection
dotnet add package fm.Extensions.DataProtection
paket add fm.Extensions.DataProtection
fm.Extensions.DataProtection Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

2.9

avg-downloads-per-day

8

days-since-last-release

29