public function hash(string $data, $file = false) {
    if ($file === false) {
      return $this->hashContent($data);
    }
    
    return $this->hashFile($file);
  }
public function hash(string $data, $file = false) {
    if ($file === false) {
      return $this->hashContent($data);
    }
    
    return $this->hashFile($file);
  }
public function hash ( string $ data , $ file = false ) { if ( $ file === false ) { return $ this -> hashContent ( $ data ) ; } return $ this -> hashFile ( $ file ) ; }
Hash by message

@param string $data
@return bool|string
Hash by message