Where does the MD5 hash get put in the DB?
$con = @mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);
$result1 = mssql_query("SELECT user_no,user_id,user_pwd FROM account.dbo.Tbl_user",$con) or die('error1');
while($row1 = @mssql_fetch_row($result1)) {
$result1 = mssql_query("INSERT INTO account.dbo.USER_PROFILE (user_no,user_id,user_pwd,resident_no,user_type,login_flag,login_tag,ipt_time,login_time,logout_time,user_ip_addr,server_id) VALUES ('".$row1[0]."','".$row1[1]."','".md5($row1[2])."','801011000000','1','0','Y','',null,null,null,'000')",$con) or die('error2');
}
the reason its like that, is because tbl_user isnt really even used, it was for website login and such at sometime, but if you try it, u dont even have to make an entry in tbl_user, just user_profile, and ur account will work just fineQuote:
I find it quite awkward how on both inserts of account information. USER_PROFILE passwords MD5(32) hashed and TBL_USER is not... Has anyone tried using hashed passwords in TBL_USER? Quite weird how they would hash one tables passwords for security yet you can just return rows from TBL_USER and get all the original passwords without cracking the hash.