src/Password/XenforoPassword.php
protected function hashRaw($password, $salt, $function = null) {
        if (!$function) {
            $function = $this->hashFunction;
        }

        $calc_hash = hash($function, hash($function, $password).$salt);

        return $calc_hash;
    }
protected function hashRaw($password, $salt, $function = null) {
        if (!$function) {
            $function = $this->hashFunction;
        }

        $calc_hash = hash($function, hash($function, $password).$salt);

        return $calc_hash;
    }
Hashes a password with a given salt.

@param string $password The password to hash.
@param string $salt The password salt.
@param string $function The hashing function to use.
@return string Returns the password hash.