Usage of ASP.NET MD5

zhaozj2021-02-16  68

Encrypted solutions are provided in ASP.NET. In the namespace system.web.security, class FormsAuthentications contains class forMsAuthentications, with a method HashPasswordforStoringInfigfile. This method can turn the characters provided by the user into garbled and then store it, and even store it in cookies. The HashPasswordforstoringInConfigfile method is easy to use, which supports "SHA1" and "MD5" encryption algorithms. The following code has a simple demonstration about its usage: <% @ page language = "c #"%> <% @ Import namespace = "system.Web.security"%>