FrozenForge.DataProtection.AesExtensionTest 3.1.3

DataProtection method using AES encryption and a string secret. I just got annoyed by the limited file system or Azure options I had.

Install-Package FrozenForge.DataProtection.AesExtensionTest -Version 3.1.3
dotnet add package FrozenForge.DataProtection.AesExtensionTest --version 3.1.3
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.1.3 64 4/27/2020
1.0.0 95 3/26/2020