![]() |
VOOZH | about |
dotnet add package Azure.Extensions.AspNetCore.DataProtection.Keys --version 1.6.3
NuGet\Install-Package Azure.Extensions.AspNetCore.DataProtection.Keys -Version 1.6.3
<PackageReference Include="Azure.Extensions.AspNetCore.DataProtection.Keys" Version="1.6.3" />
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Keys" Version="1.6.3" />Directory.Packages.props
<PackageReference Include="Azure.Extensions.AspNetCore.DataProtection.Keys" />Project file
paket add Azure.Extensions.AspNetCore.DataProtection.Keys --version 1.6.3
#r "nuget: Azure.Extensions.AspNetCore.DataProtection.Keys, 1.6.3"
#:package Azure.Extensions.AspNetCore.DataProtection.Keys@1.6.3
#addin nuget:?package=Azure.Extensions.AspNetCore.DataProtection.Keys&version=1.6.3Install as a Cake Addin
#tool nuget:?package=Azure.Extensions.AspNetCore.DataProtection.Keys&version=1.6.3Install as a Cake Tool
The Azure.Extensions.AspNetCore.DataProtection.Keys package allows protecting keys at rest using Azure Key Vault Key Encryption/Wrapping feature.
Install the package with NuGet:
dotnet add package Azure.Extensions.AspNetCore.DataProtection.Keys
You need an Azure subscription, Key Vault and a Key to use this package.
To create a new Key Vault, you can use the Azure Portal, Azure PowerShell, or the Azure CLI. Here's an example using the Azure CLI:
az keyvault create --name MyVault --resource-group MyResourceGroup --location westus
az keyvault key create --name MyKey --vault-name MyVault
# give write access to a service principal (application)
az keyvault set-policy -n MyVault --object-id <application_id> --key-permissions get unwrapKey wrapKey
We guarantee that all client instance methods are thread-safe and independent of each other (guideline). This ensures that the recommendation of reusing client instances is always safe, even across threads.
Client options | Accessing the response | Long-running operations | Handling failures | Diagnostics | Mocking | Client lifetime
To protect keys using Azure Key Vault Key, configure the system with ProtectKeysWithAzureKeyVault when configuring the services:
public void ConfigureServices(IServiceCollection services)
{
services.AddDataProtection()
.ProtectKeysWithAzureKeyVault(new Uri("<Key-ID>"), new DefaultAzureCredential());
}
The Azure Identity library provides easy Azure Active Directory support for authentication.
Read more about DataProtection in ASP.NET Core.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Azure.Extensions.AspNetCore.DataProtection.Keys:
| Package | Downloads |
|---|---|
|
Kentico.Xperience.Cloud
Provides logic, supporting API, and tools that allow deployment of applications to the Xperience by Kentico software as a service hosting environment. |
|
|
CyberEye.Identity.Lib
Package chứa các thư viện, hàm tiện ích, class model về ASP.NET Identity |
|
|
Skoruba.IdentityServer4.Shared.Configuration
Shared common layer for the administration of the IdentityServer4 and Asp.Net Core Identity |
|
|
Skoruba.Duende.IdentityServer.Shared.Configuration
Shared common layer for the administration of the Duende IdentityServer and Asp.Net Core Identity |
|
|
Rsk.AdminUI
Admin user interface for Duende IdentityServer. To purchase a license or get a demo license, contact sales@identityserver.com. |
Showing the top 11 popular GitHub repositories that depend on Azure.Extensions.AspNetCore.DataProtection.Keys:
| Repository | Stars |
|---|---|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 11, 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
|
|
|
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
|
|
|
enkodellc/blazorboilerplate
Blazor Boilerplate / Starter Template with MudBlazor
|
|
|
grandnode/grandnode2
E-commerce platform built with ASP.NET Core using MongoDB for NoSQL storage
|
|
|
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
|
|
|
skoruba/Duende.IdentityServer.Admin
Modern admin UI for Duende IdentityServer and ASP.NET Core Identity 🚀
|
|
|
Implem/Implem.Pleasanter
Pleasanter is a no-code/low-code development platform that runs on .NET. You can quickly create business applications with simple operations.
|
|
| rstropek/Samples | |
| dotnet/AspNetCore.Docs.Samples | |
|
bitwarden/passwordless-server
Bitwarden Passwordless.dev infrastructure/backend (API, database, Docker, etc).
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.3 | 390,886 | 5/9/2026 |
| 1.6.2 | 160,214 | 4/28/2026 |
| 1.6.1 | 4,509,977 | 6/23/2025 |
| 1.6.0 | 496,172 | 5/20/2025 |
| 1.5.0 | 265,621 | 5/7/2025 |
| 1.4.0 | 1,668,681 | 2/7/2025 |
| 1.3.0 | 2,159,900 | 11/27/2024 |
| 1.2.4 | 3,055,117 | 8/15/2024 |
| 1.2.3 | 4,032,173 | 2/13/2024 |
| 1.2.2 | 5,215,181 | 3/14/2023 |
| 1.2.1 | 90,684 | 3/7/2023 |
| 1.2.0 | 267,550 | 2/7/2023 |
| 1.1.0 | 5,208,985 | 9/2/2021 |
| 1.0.3 | 992,316 | 5/14/2021 |
| 1.0.2 | 1,556,325 | 9/4/2020 |
| 1.0.1 | 85,156 | 8/10/2020 |
| 1.0.0 | 214,642 | 6/5/2020 |
| 1.0.0-preview.2 | 730 | 5/5/2020 |