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

Public Member Functions

 __construct (\OxidEsales\Eshop\Core\OpenSSLFunctionalityChecker $openSSLFunctionalityChecker)
 
 generate ()
 

Protected Member Functions

 _getOpenSSLFunctionalityChecker ()
 
 _customSaltGenerator ()
 

Private Attributes

 $_openSSLFunctionalityChecker
 

Detailed Description

Generates Salt for the user password

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\PasswordSaltGenerator::__construct ( \OxidEsales\Eshop\Core\OpenSSLFunctionalityChecker  $openSSLFunctionalityChecker)

Sets dependencies.

Parameters
\OxidEsales\Eshop\Core\OpenSSLFunctionalityChecker$openSSLFunctionalityChecker

Member Function Documentation

◆ _customSaltGenerator()

OxidEsales\EshopCommunity\Core\PasswordSaltGenerator::_customSaltGenerator ( )
protected

Generates custom salt.

Returns
string
Deprecated:
underscore prefix violates PSR12, will be renamed to "customSaltGenerator" in next major

◆ _getOpenSSLFunctionalityChecker()

OxidEsales\EshopCommunity\Core\PasswordSaltGenerator::_getOpenSSLFunctionalityChecker ( )
protected

Gets open SSL functionality checker.

Returns
\OxidEsales\Eshop\Core\OpenSSLFunctionalityChecker
Deprecated:
underscore prefix violates PSR12, will be renamed to "getOpenSSLFunctionalityChecker" in next major

◆ generate()

OxidEsales\EshopCommunity\Core\PasswordSaltGenerator::generate ( )

Generates salt. If openssl_random_pseudo_bytes function is not available, than fallback to custom salt generator.

Returns
string

Member Data Documentation

◆ $_openSSLFunctionalityChecker

OxidEsales\EshopCommunity\Core\PasswordSaltGenerator::$_openSSLFunctionalityChecker
private

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