oxpasswordhasher.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class oxPasswordHasher
00007 {
00011     private $_ohasher = null;
00012 
00016     protected function _getHasher()
00017     {
00018         return $this->_ohasher;
00019     }
00020 
00024     public function __construct($oHasher)
00025     {
00026         $this->_ohasher = $oHasher;
00027     }
00028 
00037     public function hash($sPassword, $sSalt)
00038     {
00039         return $this->_getHasher()->hash($sPassword . $sSalt);
00040     }
00041 }