This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generate salted password, using new salt or exiting one from the password itself. | |
* | |
* @param string $plainTextPassword | |
* @param string $salt default = NULL (create new salt) | |
* @param int $saltLength default = 9 (the salt is the first X chars of the password hash) | |
* @return string password-hash | |
*/ | |
function passwordHash( $plainTextPassword, $salt = null, $saltLength = 9 ) | |
{ |
NewerOlder