W3cubDocs

/CakePHP 4.4

Class PasswordHasherFactory

Builds password hashing objects

Namespace: Cake\Auth

Method Summary

  • build() public static

    Returns password hasher object out of a hasher name or a configuration array

Method Detail

build() public static

build(array<string, mixed>|string $passwordHasher): Cake\Auth\AbstractPasswordHasher

Returns password hasher object out of a hasher name or a configuration array

Parameters

array<string, mixed>|string $passwordHasher

Name of the password hasher or an array with at least the key className set to the name of the class to use

Returns

Cake\Auth\AbstractPasswordHasher

Throws

RuntimeException
If password hasher class not found or it does not extend {@link \Cake\Auth\AbstractPasswordHasher}

© 2005–present 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/4.4/class-Cake.Auth.PasswordHasherFactory.html