OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
oxPasswordSaltGenerator Class Reference

Public Member Functions

 __construct (oxOpenSSLFunctionalityChecker $openSSLFunctionalityChecker)
 generate ()

Protected Member Functions

 _getOpenSSLFunctionalityChecker ()
 _customSaltGenerator ()

Private Attributes

 $_openSSLFunctionalityChecker

Detailed Description

Generates Salt for the user password

Definition at line 7 of file oxpasswordsaltgenerator.php.

Constructor & Destructor Documentation

oxPasswordSaltGenerator::__construct ( oxOpenSSLFunctionalityChecker  $openSSLFunctionalityChecker)
Parameters
oxOpenSSLFunctionalityChecker$openSSLFunctionalityChecker

Definition at line 17 of file oxpasswordsaltgenerator.php.

Member Function Documentation

oxPasswordSaltGenerator::_customSaltGenerator ( )
protected
Returns
string

Definition at line 50 of file oxpasswordsaltgenerator.php.

oxPasswordSaltGenerator::_getOpenSSLFunctionalityChecker ( )
protected
Returns
oxOpenSSLFunctionalityChecker

Definition at line 42 of file oxpasswordsaltgenerator.php.

oxPasswordSaltGenerator::generate ( )

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

Returns
string

Definition at line 28 of file oxpasswordsaltgenerator.php.

Member Data Documentation

oxPasswordSaltGenerator::$_openSSLFunctionalityChecker
private

Definition at line 12 of file oxpasswordsaltgenerator.php.


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