OXID eShop CE  6.1.5
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

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

◆ 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: