dbWriter Home
IP to Country Look up
Site Map

IP to Country DB

Free Databases:

ASP Code

ASP Links

VB Script functions:
Array
Case/Select
In String (inStr)
Replace

HTML code:
SELECT Color
SELECT Countries
SELECT Language
SELECT State/Province

SQL:

SQL Functions:
Delete leading Char
Get Browser
Long number from IP

Stored Procedures:

SQL Tricks:
Delete ALL duplicates
Delete dup records

MISC
IP Address Owner
MS SQL Server

Mortgage Calcs:
how much is my payment
Loan Amortization
Loan Calculator
Mortgage Calculator
Motrgage Pay Off

dbWriter License

Link to US

Links

Contact US
 

dbWriter hashed with MD5...   ASP code

Just for TEST purposes we have salted the Password with: "40804cf889c8ad58ae1dcfa936ca18bb".

In your live code this salt should come from your database as an additional  field connected to the user, such as the users ID. 

WARNING!!!  This salt should never be changed OR the password is lost until re-entered with a new salt!!

User Name = [blank]  Password = test  click Submit

the MD5 hashed/salted password to store in your DB = 9b06f15a15c3664da420727aad883e82

NOTE: MD5 is Case sensitive!!

 
MD5/Password stored in DB:
3b244411371422323e313d17bac2058e

User Name:

Password:

 

Download MD5 code   -- Click here

<!--#include file="md5.asp"-->
<%

DIM User_Name, strPassword, strSALT, rs

User_Name = Trim(request.form("User_Name"))


set rs = server.CreateObject("Adodb.Recordset")
rs.open "Select * From tbl_Users Where User_Name='" & User_Name & "'",cn,2,3

IF NOT rs.EOF THEN
     strSALT = rs("SALT")
     strPassword=MD5(Trim(Request.Form("Password")) & strSALT)

    IF NOT strPassword = rs("Password") then Response.Redirect("Login.asp")

END IF


%>

 
Partners/Links © 2005 - 2008 dbWriter.com All Rights Reserved
This site is protected by the dbWriter IPtoCountry MS/SQL database!!
Site map | Link to US
Contact Us

Sign up for PayPal and start accepting credit card payments instantly.