Info
| Version: | 6.0.0 | 
| Author(s): | freeMartin | 
| Last Update: | Friday, November 15, 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)
                            
                        Dependencies
- Microsoft.AspNetCore.DataProtection(>= 5.0.0)
Tags
 
                
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");.