Skip to content

Commit

Permalink
Added link to three hash methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ravage84 committed Nov 17, 2013
1 parent 016c3ae commit 229bd69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -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);
Expand Down
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Utility/Security.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit 229bd69

Please sign in to comment.