src/mako/file/FileInfo.php
public function getHash(string $algorithm = 'sha256', bool $raw = false): string
	{
		return hash_file($algorithm, $this->getPathname(), $raw);
	}
public function getHash(string $algorithm = 'sha256', bool $raw = false): string
	{
		return hash_file($algorithm, $this->getPathname(), $raw);
	}
public function getHash ( string $ algorithm = 'sha256' , bool $ raw = false ) : string { return hash_file ( $ algorithm , $ this -> getPathname ( ) , $ raw ) ; }
Generates a hash using the contents of the file.

@param  string $algorithm Hashing algorithm
@param  bool   $raw       Output raw binary data?
@return string
Generates a hash using the contents of the file .