PHP - MSSQL, Update MD5 Hashed Password.
Posted: Sun Feb 15, 2015 10:14 pm
I have a basic webpage that allows the user to submit a username, email and password for their accounts. These are done on our website with php but we send to another site of ours using MSSQL. The MD5 and salt use this,
I need a simple solution to allow the username and email for the account to match, then to include the passwd and repasswd fields so that the user can update their passwords. We haven't had a way for users to do this but I am a bit lost where MSSQL is concerned.
Would anyone have a basic example or an idea of how to do this? I figured I'd try here before using one of the freelancer sites as I just need something that works.
Thanks,
Chris
Code: Select all
$Salt = $username.$pwd;
$Salt = md5($Salt);
$Salt = "0x".$Salt;
Would anyone have a basic example or an idea of how to do this? I figured I'd try here before using one of the freelancer sites as I just need something that works.
Thanks,
Chris