mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added link to three hash methods
This commit is contained in:
parent
016c3aed44
commit
229bd69903
3 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@ class BlowfishPasswordHasher extends AbstractPasswordHasher {
|
|||
*
|
||||
* @param string $password Plain text password to hash.
|
||||
* @return string Password hash
|
||||
* @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#using-bcrypt-for-passwords
|
||||
*/
|
||||
public function hash($password) {
|
||||
return Security::hash($password, 'blowfish', false);
|
||||
|
|
|
@ -36,6 +36,7 @@ class SimplePasswordHasher extends AbstractPasswordHasher {
|
|||
*
|
||||
* @param string $password Plain text password to hash.
|
||||
* @return string Password hash
|
||||
* @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords
|
||||
*/
|
||||
public function hash($password) {
|
||||
return Security::hash($password, $this->_config['hashType'], true);
|
||||
|
|
|
@ -101,6 +101,7 @@ class Security {
|
|||
* value to $string (Security.salt). If you are using blowfish the salt
|
||||
* must be false or a previously generated salt.
|
||||
* @return string Hash
|
||||
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/security.html#Security::hash
|
||||
*/
|
||||
public static function hash($string, $type = null, $salt = false) {
|
||||
if (empty($type)) {
|
||||
|
|
Loading…
Reference in a new issue