Click here to Skip to main content
15,891,136 members
Articles / Security

Beginners guide to a secure way of storing passwords

Rate me:
Please Sign up or sign in to vote.
4.91/5 (81 votes)
20 Jul 2012CPOL7 min read 230.3K   2.1K   123  
This article will explain how to securely store users passwords in a database.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="HowToSecurePasswordInDatabaseArticle.Login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
<form id="form1" runat="server">
    <asp:TextBox ID="txtUsername" runat="server"/>
    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"/>
    <asp:Button ID="btnLogin" runat="server" Text="Submit" OnClick="btnLogin_Click" />               
    <hr />        
    <asp:Label runat="server" id="lblLoginResult"/> 
</form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer (Senior) Aurum AS
Norway Norway
Microsoft Certified Solutions Developer (MCSD)

Personal website:
stian.net

My projects:
CRM1.no - A free to use norwegian crm software
Fakturax - A free to use norwegian invoice software
Timeføring.no - A free to use norwegian timereg software
MittUtlegg - A free to use norwegian software for receipts
SupportWeb - A free to use norwegian software customersupport

Comments and Discussions