00001 <?php 00002 00006 class oxPasswordHasher 00007 { 00008 00012 private $_ohasher = null; 00013 00019 protected function _getHasher() 00020 { 00021 return $this->_ohasher; 00022 } 00023 00029 public function __construct($oHasher) 00030 { 00031 $this->_ohasher = $oHasher; 00032 } 00033 00042 public function hash($sPassword, $sSalt) 00043 { 00044 return $this->_getHasher()->hash($sPassword . $sSalt); 00045 } 00046 }