OXID eShop CE  6.4.2
OxidEsales\EshopCommunity\Core\PasswordHasher Class Reference

Public Member Functions

 __construct ($oHasher)
 
 hash ($sPassword, $sSalt)
 

Protected Member Functions

 _getHasher ()
 

Private Attributes

 $_ohasher = null
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Core\PasswordHasher::__construct (   $oHasher)

Sets dependencies.

Parameters
\OxidEsales\Eshop\Core\Hasher$oHasherhasher.

Member Function Documentation

◆ _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$sPasswordnot hashed password.
string$sSaltsalt string.
Returns
string

Member Data Documentation

◆ $_ohasher

OxidEsales\EshopCommunity\Core\PasswordHasher::$_ohasher = null
private

The documentation for this class was generated from the following file: