private function hashContent(string $data) {
    $hash = hash_hmac(
      $this->algorithm,
      $data,
      $this->key
    );

    return $this->validate($hash);
  }
private function hashContent(string $data) {
    $hash = hash_hmac(
      $this->algorithm,
      $data,
      $this->key
    );

    return $this->validate($hash);
  }
private function hashContent ( string $ data ) { $ hash = hash_hmac ( $ this -> algorithm , $ data , $ this -> key ) ; return $ this -> validate ( $ hash ) ; }
Hash by content

@param string $data
@return boolean
Hash by content