System.Web.Security in a console application

I want to create a HashPasswordForStoringInConfigFile in a console application. This is done using the following class in a web application.

System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str_value, "md5") 

But the System.Web.Security class is not available in the console application Can someone tell me an alternative method for this Or Can I import the System.Web.Security class in the console application Any help would be appreciated

Thanks Suvidha

+5
source share
1 answer

Include the System.Web link.

Right-click Links in the solution explorer in your project and click Add Link.

Then, under Assemblies โ†’ Frames, select System.Web and click OK.

+2
source

Source: https://habr.com/ru/post/1200189/


All Articles