password_funcs.php File Reference
Go to the source code of this file.
Functions
- tep_validate_password ($plain, $encrypted)
- tep_encrypt_password ($plain)
Function Documentation
| tep_encrypt_password | ( | $ | plain | ) |
Definition at line 28 of file password_funcs.php.
Referenced by customer::userInsert(), and customer::userUpdatepassword().
| tep_validate_password | ( | $ | plain, | |
| $ | encrypted | |||
| ) |
Definition at line 14 of file password_funcs.php.
Referenced by customer::CheckMailAndPass(), and customer::checkPasswordProcess().
00014 { 00015 if (tep_not_null($plain) && tep_not_null($encrypted)) { 00016 // split apart the hash / salt 00017 $stack = explode(':', $encrypted); 00018 if (sizeof($stack) != 2) return false; 00019 if (md5($stack[1] . $plain) == $stack[0]) return true; 00020 } 00021 return false; 00022 }
