Microsoft.AspNetCore.DataProtection 2.1.0-preview2-final

Prefix Reserved
Additional Details

This package has been deprecated as part of the .NET Package Deprecation effort. You can learn more about it from https://github.com/dotnet/announcements/issues/217

This is a prerelease version of Microsoft.AspNetCore.DataProtection.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.DataProtection --version 2.1.0-preview2-final
                    
NuGet\Install-Package Microsoft.AspNetCore.DataProtection -Version 2.1.0-preview2-final
                    
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="Microsoft.AspNetCore.DataProtection" Version="2.1.0-preview2-final" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.DataProtection" Version="2.1.0-preview2-final" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.DataProtection" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.AspNetCore.DataProtection --version 2.1.0-preview2-final
                    
#r "nuget: Microsoft.AspNetCore.DataProtection, 2.1.0-preview2-final"
                    
#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.
#:package Microsoft.AspNetCore.DataProtection@2.1.0-preview2-final
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.AspNetCore.DataProtection&version=2.1.0-preview2-final&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.DataProtection&version=2.1.0-preview2-final&prerelease
                    
Install as a Cake Tool

ASP.NET Core logic to protect and unprotect data, similar to DPAPI.

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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 (280)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.DataProtection:

Package Downloads
Microsoft.AspNetCore.Antiforgery

An antiforgery system for ASP.NET Core designed to generate and validate tokens to prevent Cross-Site Request Forgery attacks.

Microsoft.AspNetCore.Authentication

ASP.NET Core common types used by the various authentication middleware components.

Microsoft.Identity.Web

This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.

Microsoft.Identity.Web.TokenCache

This package bring token cache serializers for MSAL.NET confidential client applications.

Microsoft.AspNetCore.DataProtection.Extensions

Additional APIs for ASP.NET Core data protection. This package was built from the source code at https://github.com/dotnet/dotnet/tree/fad253f51b461736dfd3cd9c15977bb7493becef

GitHub repositories (47)

Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.DataProtection:

Repository Stars
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
Jackett/Jackett
API Support for your favorite torrent trackers
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 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.
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
openiddict/openiddict-core
Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
dotnetcore/WTM
Use WTM to write .netcore app fast !!!
projectkudu/kudu
Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.
tareqimbasher/NetPad
A cross-platform C# editor and playground.
FoundatioFx/Foundatio
Pluggable foundation blocks for building distributed apps.
CoreWCF/CoreWCF
Main repository for the Core WCF project
NethermindEth/nethermind
A robust execution client for Ethereum node operators.
Azure/azure-functions-core-tools
Command line tools for Azure Functions
aspnet/Security
[Archived] Middleware for security and authorization of web apps. Project moved to https://github.com/aspnet/AspNetCore
iioter/iotgateway
An industrial IoTGateway with B/S architecture that enables bidirectional communication between industrial devices (southbound connections) and IoT platforms (northbound connections). It supports numerous industrial protocols, and can connect to various IoT cloud platforms.
security-code-scan/security-code-scan
Vulnerability Patterns Detector for C# and VB.NET
BcryptNet/bcrypt.net
BCrypt.Net - Bringing updates to the original bcrypt package
NewLifeX/NewLife.Redis
High performance redis client, support NETCore/. NET4. 0/. NET4. 5. It is specially optimized for big data and message queue. The average daily consumption of online single application is 10 billion. 高性能Redis客户端,支持.NETCore/.NET4.0/.NET4.5,为大数据与消息队列而特别优化,线上单应用日均100亿调用量
streetwriters/notesnook-sync-server
Sync server for Notesnook (self-hosting in alpha)
AzureAD/microsoft-identity-web
Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
Version Downloads Last Updated
10.0.1 124,128 12/9/2025
10.0.0 876,794 11/11/2025
10.0.0-rc.2.25502.107 15,965 10/14/2025
10.0.0-rc.1.25451.107 17,536 9/9/2025
10.0.0-preview.7.25380.108 4,197 8/12/2025
10.0.0-preview.6.25358.103 936 7/15/2025
10.0.0-preview.5.25277.114 1,835 6/6/2025
10.0.0-preview.4.25258.110 2,269 5/12/2025
10.0.0-preview.3.25172.1 2,390 4/10/2025
10.0.0-preview.2.25164.1 2,987 3/18/2025
10.0.0-preview.1.25120.3 125,133 2/25/2025
9.0.11 246,533 11/11/2025
9.0.10 846,441 10/14/2025
9.0.9 1,138,435 9/9/2025
9.0.8 1,115,665 8/5/2025
9.0.7 845,438 7/8/2025
9.0.6 1,087,436 6/10/2025
9.0.5 973,570 5/13/2025
9.0.4 1,118,236 4/8/2025
9.0.3 899,727 3/11/2025
9.0.2 1,174,790 2/11/2025
9.0.1 1,653,952 1/14/2025
9.0.0 15,577,513 11/12/2024
9.0.0-rc.2.24474.3 277,666 10/8/2024
9.0.0-rc.1.24452.1 179,015 9/10/2024
9.0.0-preview.7.24406.2 5,702 8/13/2024
9.0.0-preview.6.24328.4 167,964 7/9/2024
9.0.0-preview.5.24306.11 1,303 6/11/2024
9.0.0-preview.4.24267.6 8,325 5/21/2024
9.0.0-preview.3.24172.13 76,587 4/11/2024
9.0.0-preview.2.24128.4 21,602 3/12/2024
9.0.0-preview.1.24081.5 21,536 2/13/2024
8.0.22 546,807 11/11/2025
8.0.21 359,547 10/14/2025
8.0.20 384,384 9/9/2025
8.0.19 1,163,591 8/4/2025
8.0.18 380,021 7/8/2025
8.0.17 1,265,931 6/10/2025
8.0.16 2,817,802 5/13/2025
8.0.15 1,092,676 4/8/2025
8.0.14 860,883 3/11/2025
8.0.13 1,086,667 2/11/2025
8.0.12 1,205,796 1/14/2025
8.0.11 8,313,729 11/12/2024
8.0.10 3,983,005 10/8/2024
8.0.8 3,956,857 8/13/2024
8.0.7 2,515,901 7/9/2024
8.0.6 4,153,440 5/28/2024
8.0.5 1,039,731 5/14/2024
8.0.4 5,730,427 4/9/2024
8.0.3 2,053,568 3/12/2024
8.0.2 2,007,442 2/13/2024
8.0.1 32,635,056 1/9/2024
8.0.0 27,321,005 11/14/2023
8.0.0-rc.2.23480.2 1,303,768 10/10/2023
8.0.0-rc.1.23421.29 135,247 9/12/2023
8.0.0-preview.7.23375.9 511,590 8/8/2023
8.0.0-preview.6.23329.11 7,781 7/11/2023
8.0.0-preview.5.23302.2 4,043 6/13/2023
8.0.0-preview.4.23260.4 265,542 5/16/2023
8.0.0-preview.3.23177.8 6,694 4/11/2023
8.0.0-preview.2.23153.2 2,503 3/14/2023
8.0.0-preview.1.23112.2 55,369 2/21/2023
7.0.20 538,114 5/28/2024
7.0.19 140,162 5/14/2024
7.0.18 228,707 4/9/2024
7.0.17 392,347 3/12/2024
7.0.16 271,916 2/13/2024
7.0.15 314,239 1/9/2024
7.0.14 770,537 11/14/2023
7.0.13 853,501 10/24/2023
7.0.12 1,626,161 10/10/2023
7.0.11 1,214,140 9/12/2023
7.0.10 2,302,327 8/8/2023
7.0.9 2,220,079 7/11/2023
7.0.8 601,076 6/22/2023
7.0.7 1,648,604 6/13/2023
7.0.5 4,110,616 4/11/2023
7.0.4 1,927,164 3/14/2023
7.0.3 3,084,238 2/14/2023
7.0.2 1,126,161 1/10/2023
7.0.1 717,327 12/13/2022
7.0.0 3,606,278 11/7/2022
7.0.0-rc.2.22476.2 33,427 10/11/2022
7.0.0-rc.1.22427.2 5,995 9/14/2022
7.0.0-preview.7.22376.6 5,405 8/9/2022
7.0.0-preview.6.22330.3 19,760 7/12/2022
7.0.0-preview.5.22303.8 1,715 6/14/2022
7.0.0-preview.4.22251.1 7,125 5/10/2022
7.0.0-preview.3.22178.4 1,580 4/13/2022
7.0.0-preview.2.22153.2 12,442 3/14/2022
7.0.0-preview.1.22109.13 2,856 2/17/2022
6.0.36 453,758 11/12/2024
6.0.35 222,959 10/8/2024
6.0.33 1,152,426 8/13/2024
6.0.32 206,336 7/9/2024
6.0.31 233,244 5/28/2024
6.0.30 177,323 5/14/2024
6.0.29 409,993 4/9/2024
6.0.28 398,676 3/12/2024
6.0.27 549,810 2/13/2024
6.0.26 429,276 1/9/2024
6.0.25 888,614 11/14/2023
6.0.24 365,765 10/24/2023
6.0.23 1,322,969 10/10/2023
6.0.22 1,111,360 9/12/2023
6.0.21 1,651,410 8/8/2023
6.0.20 1,337,020 7/11/2023
6.0.19 279,779 6/22/2023
6.0.18 1,160,950 6/13/2023
6.0.16 3,050,850 4/11/2023
6.0.15 1,197,907 3/14/2023
6.0.14 1,503,486 2/14/2023
6.0.13 1,412,896 1/10/2023
6.0.12 487,207 12/13/2022
6.0.11 1,355,994 11/7/2022
6.0.10 2,230,367 10/11/2022
6.0.9 1,733,374 9/13/2022
6.0.8 1,823,202 8/9/2022
6.0.7 2,004,444 7/12/2022
6.0.6 1,399,262 6/14/2022
6.0.5 2,284,687 5/10/2022
6.0.4 1,583,430 4/11/2022
6.0.3 1,561,300 3/8/2022
6.0.2 1,266,228 2/8/2022
6.0.1 3,710,035 12/14/2021
6.0.0 7,644,929 11/8/2021
6.0.0-rc.2.21480.10 16,866 10/12/2021
6.0.0-rc.1.21452.15 4,435 9/14/2021
6.0.0-preview.7.21378.6 7,702 8/10/2021
6.0.0-preview.6.21355.2 1,718 7/14/2021
6.0.0-preview.5.21301.17 2,098 6/15/2021
6.0.0-preview.4.21253.5 1,667 5/24/2021
6.0.0-preview.3.21201.13 3,212 4/8/2021
6.0.0-preview.2.21154.6 1,575 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 2,252 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 975,129 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 179,200 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 295,282 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 324,945 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 319,746 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 531,003 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 806,741 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 740,810 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 1,202,741 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 36,277,411 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 951,943 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 951,919 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 8,004,709 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 643,845 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 757,135 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 1,344,673 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 672,388 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 802,597 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 8,178 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 65,767 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 24,423 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 3,206 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 5,186 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 1,487 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 2,848 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 3,482 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 1,660 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 1,609 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 15,545,668 12/13/2022
3.1.31 858,625 11/8/2022
3.1.30 564,756 10/11/2022
3.1.29 143,407 9/13/2022
3.1.28 4,664,173 8/9/2022
3.1.27 168,891 7/12/2022
3.1.26 156,280 6/14/2022
3.1.25 157,313 5/10/2022
3.1.24 2,705,319 4/11/2022
3.1.23 533,864 3/8/2022
3.1.22 1,221,070 12/14/2021
3.1.21 511,558 11/7/2021
3.1.20 278,001 10/11/2021
3.1.19 263,044 9/14/2021
3.1.18 538,211 8/10/2021
3.1.17 474,410 7/13/2021
3.1.16 462,272 6/8/2021
3.1.15 450,788 5/11/2021
3.1.14 748,925 4/6/2021
3.1.13 443,437 3/9/2021
3.1.12 681,868 2/9/2021
3.1.11 416,880 1/12/2021
3.1.10 882,505 11/9/2020
3.1.9 1,780,192 10/13/2020
3.1.8 1,712,185 9/8/2020
3.1.7 1,383,653 8/11/2020
3.1.6 1,272,677 7/14/2020
3.1.5 1,388,647 6/9/2020
3.1.4 2,197,924 5/12/2020
3.1.3 2,382,155 3/24/2020
3.1.2 1,422,202 2/18/2020
3.1.1 1,568,863 1/14/2020
3.1.0 2,395,773 12/3/2019
3.1.0-preview3.19555.2 3,798 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 3,081 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 1,462 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 184,749 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 142,010 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 3,072,045 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 5,200 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 5,576 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 7,512 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 6,809 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
2.3.0 13,749,543 1/14/2025
2.2.0 269,665,954 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 141,943 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 235,414 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 57,321 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.1 64,254,509 6/18/2018
2.1.0 59,015,482 5/29/2018
2.1.0-rc1-final 206,959 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 278,302 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 223,897 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.3 13,814,248 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 14,335,062 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 24,418,363 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 65,787,710 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 119,584 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 43,247 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.3 3,122,806 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 4,826,946 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 4,828,926 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 3,820,166 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 189,984 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.5 1,027,819 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 162,675 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 427,391 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 3,496,881 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 754,751 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 10,724,549 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 256,020 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.