lib/Opauth/OpauthStrategy.php
public static function hash($input, $timestamp, $iteration, $salt) {
		$iteration = intval($iteration);
		if ($iteration <= 0) {
			return false;
		}

		for ($i = 0; $i < $iteration; ++$i) {
			$input = base_convert(sha1($input.$salt.$timestamp), 16, 36);
		}
		return $input;
	}
public static function hash($input, $timestamp, $iteration, $salt) {
		$iteration = intval($iteration);
		if ($iteration <= 0) {
			return false;
		}

		for ($i = 0; $i < $iteration; ++$i) {
			$input = base_convert(sha1($input.$salt.$timestamp), 16, 36);
		}
		return $input;
	}
public static function hash ( $ input , $ timestamp , $ iteration , $ salt ) { $ iteration = intval ( $ iteration ) ; if ( $ iteration <= 0 ) { return false ; } for ( $ i = 0 ; $ i < $ iteration ; ++ $ i ) { $ input = base_convert ( sha1 ( $ input . $ salt . $ timestamp ) , 16 , 36 ) ; } return $ input ; }
Static hashing function

@param string $input Input string
@param string $timestamp ISO 8601 formatted date
@param int $iteration Number of hash iterations
@param string $salt
@return string Resulting hash
Static hashing function