How can I encrypt the password field in asp.net MVC to be store in encrypted form?
Using ASP.Net MVC Data Annotation outside of MVC
1:twitter like alert jquery in asp.net mvc
Typical workflow would involve generating a salt value and using this to hash the password and then storing them both in the row. How to disable Export to Microsoft Excel in the IE browser right click?This is documented in detail in many places and is easily searched.. Detect if an element is selected in listbox or not through jquery If you truly just want a way to quickly hash or encrypt without salt take a look atCreating Database Mocks in ASP.NET MVC using Data from Existing DatabaseIs it possible to configure ELMAH entirely in code?
FormsAuthentication.HashPasswordForStoringInConfigFile. asp.net mvc jquery how to enable the button after disable
2:How to design configurable MVC panels?
If you are concerned around sending plain text over the wire, use https. Then whether you use https or not use a one way hashing algorithm such as Sha256 to "encrypt" the password and store this in your database (or whatever persistent storage you are using). When a user logs in, use the same algorithm, to convert the text they entered into the hashed text and compare the hashed text with the hashed text in your database. .
The easiest way I found is using the Membership Provider from ASP.NET. Then you must configure it in your web.config like this:.
<system.web> <membership> <providers> <clear /> <add name="AspNetSqlMembershipProvider" (...) passwordFormat="Hashed" (...) /> </providers> </membership>