private function hashFile(string $filename) {
    $hash = hash_hmac_file(
      $this->algorithm,
      $filename,
      $this->key
    );

    return $this->validate($hash);
  }
private function hashFile(string $filename) {
    $hash = hash_hmac_file(
      $this->algorithm,
      $filename,
      $this->key
    );

    return $this->validate($hash);
  }
private function hashFile ( string $ filename ) { $ hash = hash_hmac_file ( $ this -> algorithm , $ filename , $ this -> key ) ; return $ this -> validate ( $ hash ) ; }
Hash by filename

@param string $filename
@return bool|string
Hash by filename