/calculate-document-hash

A python script(macro) to calculate document hash in LibreOffice Writer.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Calculate document hash

A Python script(macro) to calculate document hash in LibreOffice Writer. It inserts the text SHA-256 Hash: xxxxxx at the cursor in the document.

Install & Run

  1. Download script

    Click to download, or use command:

    curl -o https://raw.githubusercontent.com/bac0id/calculate-document-hash/refs/heads/main/calculate_document_hash.py
  2. Move script to script folder

    Refer to Python Guide - Introduction

  3. Run script

    • Open a document file with LibreOffice Writer.

    • Move cursor to a place to insert hash.

    • To insert hash at the cursor, click Tools -> Run Macro.