How to use the Data Protection API in ASP.Net Core

您所在的位置:网站首页 表格中快速搜索按哪三个键 How to use the Data Protection API in ASP.Net Core

How to use the Data Protection API in ASP.Net Core

#How to use the Data Protection API in ASP.Net Core | 来源: 网络整理| 查看: 265

The Data protection stack in ASP.Net Core provides an easy-to-use cryptographic API for protecting data, including the necessary mechanisms for encryption and decryption. This article looks at how we can work with this API when building our ASP.Net Core applications.

[ Which database should you use? Let InfoWorld be your guide. The best distributed relational databases. • The best NoSQL databases. • The best graph databases. | Go deep into analytics and big data with the InfoWorld Big Data and Analytics Report newsletter. ]Create an ASP.Net Core MVC project in Visual Studio

First off, let’s create an ASP.Net Core project in Visual Studio. Assuming Visual Studio 2017 or Visual Studio 2019 is installed in your system, follow the steps outlined below to create a new ASP.Net Core project in Visual Studio.

Launch the Visual Studio IDE. Click on “Create new project.” In the “Create new project” window, select “ASP.Net Core Web Application” from the list of templates displayed. Click Next.  In the “Configure your new project” window, specify the name and location for the new project. Click Create.  In the “Create New ASP.Net Core Web Application” window shown next, select .Net Core as the runtime and ASP.Net Core 2.2 (or later) from the drop-down list at the top. Select “Web Application (Model-View-Controller)” as the project template to create a new ASP.Net Core MVC application.  Ensure that the check boxes “Enable Docker Support” and “Configure for HTTPS” are unchecked as we won’t be using those features here. Ensure that Authentication is set as “No Authentication” as we won’t be using authentication either. Click Create. 

Following these steps should create a new ASP.Net Core project in Visual Studio. We’ll use this project in the subsequent sections of this article.

To continue reading this article register now

Get Free Access

Learn More   Existing Users Sign In



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3