Class AbstractPasswordHasher
Abstract password hashing class
Direct Subclasses
Abstract
Package: Cake\Controller\Component\Auth
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Controller/Component/Auth/AbstractPasswordHasher.php
Package: Cake\Controller\Component\Auth
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Controller/Component/Auth/AbstractPasswordHasher.php
Properties summary
-
$_config
protectedarray
Configurations for this object. Settings passed from authenticator class to the constructor are merged with this property.
Method Summary
-
__construct() public
Constructor -
check() abstract public
Check hash. Generate hash from user provided password string or data array and check against existing hash.
-
config() public
Get/Set the config -
hash() abstract public
Generates password hash.
Method Detail
__construct() public ¶
__construct( array $config = array() )
Constructor
Parameters
- array $config optional array()
- Array of config.
check() abstract public ¶
check( string|array $password , string $hashedPassword )
Check hash. Generate hash from user provided password string or data array and check against existing hash.
Parameters
- string|array $password
- Plain text password to hash or data array.
- string $hashedPassword
- Existing hashed password.
Returns
boolean
True if hashes match else false.
True if hashes match else false.