src/Phpass/Hash.php
protected function _crypt($password, $salt = null)
    {
        if (isset($this->_hmacKey)) {
            $password = hash_hmac($this->_hmacAlgo, $password, $this->_hmacKey);
        }
        $adapter = $this->getAdapter();
        $hash = $adapter->crypt($password, $salt);

        return $hash;
    }
protected function _crypt($password, $salt = null)
    {
        if (isset($this->_hmacKey)) {
            $password = hash_hmac($this->_hmacAlgo, $password, $this->_hmacKey);
        }
        $adapter = $this->getAdapter();
        $hash = $adapter->crypt($password, $salt);

        return $hash;
    }
protected function _crypt ( $ password , $ salt = null ) { if ( isset ( $ this -> _hmacKey ) ) { $ password = hash_hmac ( $ this -> _hmacAlgo , $ password , $ this -> _hmacKey ) ; } $ adapter = $ this -> getAdapter ( ) ; $ hash = $ adapter -> crypt ( $ password , $ salt ) ; return $ hash ; }
Return a hashed string, optionally using a pre-calculated salt.

If Hash::$_hmacKey is set, this method will generate the HMAC hash of
the password string before passing the value to the adapter.

@param string $password
The string to be hashed.
@param string $salt
An optional salt string to base the hashing on. If not provided, the
adapter will generate a new secure salt value.
@return string
Returns the hashed string.
Return a hashed string optionally using a pre - calculated salt .