FrozenForge.DataProtection.AesExtensionTest
3.1.3
dotnet add package FrozenForge.DataProtection.AesExtensionTest --version 3.1.3
NuGet\Install-Package FrozenForge.DataProtection.AesExtensionTest -Version 3.1.3
<PackageReference Include="FrozenForge.DataProtection.AesExtensionTest" Version="3.1.3" />
paket add FrozenForge.DataProtection.AesExtensionTest --version 3.1.3
#r "nuget: FrozenForge.DataProtection.AesExtensionTest, 3.1.3"
// Install FrozenForge.DataProtection.AesExtensionTest as a Cake Addin #addin nuget:?package=FrozenForge.DataProtection.AesExtensionTest&version=3.1.3 // Install FrozenForge.DataProtection.AesExtensionTest as a Cake Tool #tool nuget:?package=FrozenForge.DataProtection.AesExtensionTest&version=3.1.3
DataProtection
What is this?
This package features an extension method for IDataProtectionBuilder that can allow ASP.NET applications to protect keys with AES encryption and a string secret.
The default options, to use either Azure KeyVault or the file system for protecting keys, made me StackOverflow this together.
Example usage
Here's an example where I configure an ASP.NET Core 3.1 project to persist (save) key data to a database and protect (encrypt) said data using AES encryption and a string secret:
services
.AddDataProtection()
.PersistKeysToDbContext<YourDbContextType>()
.ProtectKeysWithAesEncryptedSecret(dataProtectionSection.GetValue<string>("Secret")); // ← Oh boy!
If you're using this, then I'd love to hear about it (code feedback too!). First NuGet package and I'm baffled by the number of downloads.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.AspNetCore.DataProtection (>= 3.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.