Class BlowfishPasswordHasher
Blowfish password hashing class.
- AbstractPasswordHasher
- BlowfishPasswordHasher
Package: Cake\Controller\Component\Auth
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Controller/Component/Auth/BlowfishPasswordHasher.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Controller/Component/Auth/BlowfishPasswordHasher.php
Inherited Properties
Method Summary
- check() publicCheck hash. Generate hash for user provided password and check against existing hash.
- hash() publicGenerates password hash.
Method Detail
check()source 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.
hash()source public
hash( string $password )
Generates password hash.
Parameters
- string
$password
- Plain text password to hash.
Returns
stringPassword hash
Link
https://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#using-bcrypt-for-passwordsMethods inherited from AbstractPasswordHasher
__construct()source public
__construct( array $config array() )
Constructor
Parameters
- array
$config
optional array() - Array of config.
config()source public
config( array $config null )
Get/Set the config
Parameters
- array
$config
optional null - Sets config, if null returns existing config
Returns
arrayReturns configs
© 2005–2017 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.
https://api.cakephp.org/2.10/class-BlowfishPasswordHasher.html