Permalink
Browse files

Added link to three hash methods

  • Loading branch information...
ravage84 committed Nov 17, 2013
1 parent 016c3ae commit 229bd699037766d18a99c156c18986733aa6c18d
@@ -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 @@ public static function validateAuthKey($authKey) {
* 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)) {

0 comments on commit 229bd69

Please sign in to comment.