Class SimplePasswordHasher
Simple password hashing class.
- AbstractPasswordHasher
- SimplePasswordHasher
Package: Cake\Controller\Component\Auth
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Controller/Component/Auth/SimplePasswordHasher.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Controller/Component/Auth/SimplePasswordHasher.php
Properties summary
-
$_config
protectedarray
Config for this object.
Method Summary
Method Detail
check() 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
boolean
True if hashes match else false.
True if hashes match else false.
Methods inherited from AbstractPasswordHasher
__construct() public ¶
__construct( array $config = array() )
Constructor
Parameters
- array $config optional array()
- Array of config.