Hash password together with salt, using set hash algorithm
- Deprecated:
- since v6.4.0 (2019-03-15);
\OxidEsales\EshopCommunity\Internal\Domain\Authentication\Bridge\PasswordServiceBridgeInterface
was added as the new default for hashing passwords. Hashing passwords with MD5 and SHA512 is still supported in order support login with older password hashes. Therefor this class might not be compatible with the current passhword hash any more.
◆ __construct()
OxidEsales\EshopCommunity\Core\PasswordHasher::__construct |
( |
|
$oHasher | ) |
|
Sets dependencies.
- Parameters
-
\OxidEsales\Eshop\Core\Hasher | $oHasher | hasher. |
◆ _getHasher()
OxidEsales\EshopCommunity\Core\PasswordHasher::_getHasher |
( |
| ) |
|
|
protected |
Gets hasher.
- Returns
- \OxidEsales\Eshop\Core\Hasher
- Deprecated:
- underscore prefix violates PSR12, will be renamed to "getHasher" in next major
◆ hash()
OxidEsales\EshopCommunity\Core\PasswordHasher::hash |
( |
|
$sPassword, |
|
|
|
$sSalt |
|
) |
| |
Hash password with a salt.
- Parameters
-
string | $sPassword | not hashed password. |
string | $sSalt | salt string. |
- Returns
- string
◆ $_ohasher
OxidEsales\EshopCommunity\Core\PasswordHasher::$_ohasher = null |
|
private |
The documentation for this class was generated from the following file: