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.
-
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
-
Move script to script folder
Refer to Python Guide - Introduction
-
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.
-