Class SimplePasswordHasher
Simple password hashing class.
- AbstractPasswordHasher
 -  
 SimplePasswordHasher  
 Package: Cake\Controller\Component\Auth
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/Controller/Component/Auth/SimplePasswordHasher.php
 
  Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/Controller/Component/Auth/SimplePasswordHasher.php
Method Detail
checksource public
check( string $password , string $hashedPassword )
Check hash. Generate hash for user provided password and check against existing hash.
Parameters
-  string 
$password - Plain text password to hash.
 -  string 
$hashedPassword - Existing hashed password.
 
Returns
booleanTrue if hashes match else false.
hashsource public
hash( string $password )
Generates password hash.
Parameters
-  string 
$password - Plain text password to hash.
 
Returns
stringPassword hash
Link
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwordsMethods inherited from AbstractPasswordHasher
__constructsource public
__construct( array $config array() )
Constructor
Parameters
-  array 
$configoptional array() - Array of config.
 
configsource public
config( array $config null )
Get/Set the config
Parameters
-  array 
$configoptional null - Sets config, if null returns existing config
 
Returns
arrayReturns configs
Properties summary
    © 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
    http://api.cakephp.org/2.7/class-SimplePasswordHasher.html