![]() |
Admin 10/11/2005 |
Jeremy, $strSQL = "select * from ".AddTableWrappers($cLoginTable)." where ".AddFieldWrappers($cUserNameField). "=".$strUsername." and ".AddFieldWrappers($cPasswordField). "=MD5(".$strPassword.")";
$fields.=",".AddFieldWrappers("Password"); $values.=",MD5(".$dbval.")";
$strSQL= "update ".AddTableWrappers($cLoginTable)." set ".AddFieldWrappers($cPasswordField)."=MD5(".$passvalue.")".$sWhere; |
J
|
jeremy2011 author 10/12/2005 |
thanks for your help, it's working very well. |
|
prleo1 10/12/2005 |
If I am correct, MD5 cannot be reversed once it is encrypted; it can only be compared to another value to see if it matches. |
O
|
omegix 10/21/2005 |
For some reason this is working except for the changepwd.php page. changepwd.php $strSQL= "update ".AddTableWrappers($cLoginTable)." set ".AddFieldWrappers($cPasswordField)."=MD5(".$passvalue.")".$sWhere;
if($_POST["opass"] == $row[$cPasswordField]) { $strSQL= "update ".AddTableWrappers($cLoginTable)." set ".AddFieldWrappers($cPasswordField)."=MD5(".$passvalue.")".$sWhere; db_exec($strSQL,$conn); $changed = true; }
|
|
500334 10/21/2005 |
Not sure if this is related, but I just spent half a day trying to get MD5 to work on an older site where I had used another database. |
O
|
omegix 10/24/2005 |
I tired this, but still not working. thanks for the tip anyway <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=6483&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> |
![]() |
Admin 10/25/2005 |
Hi, if (@$_POST["btnSubmit"] == "Submit") |