![]() |
TYPO3
7.6
|
Static Public Member Functions | |
static | getRegisteredSaltedHashingMethods () |
static | getSaltingInstance ($saltedHash= '', $mode=TYPO3_MODE) |
static | determineSaltingHashingMethod ($saltedHash, $mode=TYPO3_MODE) |
static | setPreferredHashingMethod ($resource) |
Static Protected Member Functions | |
static | getDefaultSaltMethods () |
Static Protected Attributes | |
static | $instance = null |
Class that implements Blowfish salted hashing based on PHP's crypt() function.
Definition at line 21 of file SaltFactory.php.
|
static |
Method tries to determine the salting hashing method used for given salt.
Method implicitly sets the instance of the found method object in the class property when found.
string | $saltedHash | |
string | $mode | (optional) The TYPO3 mode (FE or BE) saltedpasswords shall be used for |
Definition at line 114 of file SaltFactory.php.
|
staticprotected |
Returns an array with default salt method class names.
Definition at line 61 of file SaltFactory.php.
|
static |
Returns list of all registered hashing methods. Used eg. in extension configuration to select the default hashing method.
Definition at line 37 of file SaltFactory.php.
References $GLOBALS.
|
static |
Obtains a salting hashing method instance.
This function will return an instance of a class that implements
Use parameter NULL to reset the factory!
string | NULL | $saltedHash | Salted hashed password to determine the type of used method from or NULL to reset to the default type |
string | $mode | The TYPO3 mode (FE or BE) saltedpasswords shall be used for |
Definition at line 83 of file SaltFactory.php.
|
static |
Method sets a custom salting hashing method class.
string | $resource | Object resource to use (e.g. ::class) |
Definition at line 142 of file SaltFactory.php.
|
staticprotected |
Definition at line 29 of file SaltFactory.php.