You are here

function hackedFileIncludeEndingsHasher::perform_hash in Hacked! 8.2

Compute and return the hash of the given file.

Parameters

$filename: A fully-qualified filename to hash.

Return value

string The computed hash of the given file.

Overrides hackedFileHasher::perform_hash

File

src/hackedFileIncludeEndingsHasher.php, line 9

Class

hackedFileIncludeEndingsHasher
This is a much faster, but potentially less useful file hasher.

Namespace

Drupal\hacked

Code

function perform_hash($filename) {
  return sha1_file($filename);
}