Added link to three hash methods

This commit is contained in:
Marc Würth 2013-11-17 03:40:39 +01:00
parent 016c3aed44
commit 229bd69903
3 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,7 @@ class BlowfishPasswordHasher extends AbstractPasswordHasher {
* *
* @param string $password Plain text password to hash. * @param string $password Plain text password to hash.
* @return string Password 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) { public function hash($password) {
return Security::hash($password, 'blowfish', false); return Security::hash($password, 'blowfish', false);

View file

@ -36,6 +36,7 @@ class SimplePasswordHasher extends AbstractPasswordHasher {
* *
* @param string $password Plain text password to hash. * @param string $password Plain text password to hash.
* @return string Password hash * @return string Password hash
* @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords
*/ */
public function hash($password) { public function hash($password) {
return Security::hash($password, $this->_config['hashType'], true); return Security::hash($password, $this->_config['hashType'], true);

View file

@ -101,6 +101,7 @@ class Security {
* value to $string (Security.salt). If you are using blowfish the salt * value to $string (Security.salt). If you are using blowfish the salt
* must be false or a previously generated salt. * must be false or a previously generated salt.
* @return string Hash * @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) { public static function hash($string, $type = null, $salt = false) {
if (empty($type)) { if (empty($type)) {