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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FrozenForge.DataProtection.AesExtensionTest" Version="3.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FrozenForge.DataProtection.AesExtensionTest --version 3.1.3
#r "nuget: FrozenForge.DataProtection.AesExtensionTest, 3.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.3 499 4/27/2020
1.0.0 458 3/26/2020