Click here to Skip to main content
Click here to Skip to main content

MD5 in ASP.NET

By , 3 Apr 2010
 
Hello friends.
 
This is my first post on CodeProject.
 
Today, I will write about MD5 in ASP.NET.
 
You create a new web site, using Visual Studio 2008, and at default.aspx, drag two controls, first Label and second TextBox.
 
In the first control(Label), change your property ID to lblResult and Text for null. In the second control(TextBox), change your property ID to txtValue and Text for null.
 
Add a NameSpace "System.Web.Security" in the class using.
 
Add one button control, chage ID to btnOK and Text to OK.
 
In the click event of button, add the following code:
 
FormsAuthentication.HashPasswordForStoringInConfigFile("value of string", "MD5");
 
Good luck.
 
Rafael Silva
Site: http://www.rlsystem.com.br/blog
Twitter: http://twitter.com/rafaellealsilva

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Rafael Leal da Silva
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 3 Apr 2010
Article Copyright 2010 by Rafael Leal da Silva
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid