OXID eShop CE  4.8.11
 All Classes Files Functions Variables Pages
oxpasswordhasher.php
Go to the documentation of this file.
1 <?php
2 
7 {
11  private $_ohasher = null;
12 
16  protected function _getHasher()
17  {
18  return $this->_ohasher;
19  }
20 
24  public function __construct($oHasher)
25  {
26  $this->_ohasher = $oHasher;
27  }
28 
37  public function hash($sPassword, $sSalt)
38  {
39  return $this->_getHasher()->hash($sPassword . $sSalt);
40  }
41 }