OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxpasswordhasher.php
Go to the documentation of this file.
1 <?php
2 
7 {
8 
12  private $_ohasher = null;
13 
19  protected function _getHasher()
20  {
21  return $this->_ohasher;
22  }
23 
29  public function __construct($oHasher)
30  {
31  $this->_ohasher = $oHasher;
32  }
33 
42  public function hash($sPassword, $sSalt)
43  {
44  return $this->_getHasher()->hash($sPassword . $sSalt);
45  }
46 }