fm.Extensions.DataProtection (nuget): 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");
Keywords: Extensions|DataProtection|Encryption