Шифрування документів з допомогою OpenPGP

LibreOffice може шифрувати документи з використанням публічних ключів криптографії OpenPGP. Документ шифрується симетричним алгоритмом шифрування.

Щоб скористатися цією командою…

Зайдіть в меню Файл - Зберегти як, відмітьте Зашифрувати ключем GPG, натисніть Зберегти.


LibreOffice може шифрувати документи для збереження конфіденційності, використовуючи OpenPGP. Документ шифрується з використанням симетричного алгоритму шифрування, що вимагає наявності симетричного ключа. Кожен симетричний ключ використовують лише один раз; його також називають ключем сесії. Документ та його ключ сесії надсилають отримувачу. Ключ сесії потрібно надіслати отримувачам, щоб вони знали, чим розшифрувати документ, але для захисту його під час пересилання документ шифрують публічним ключем отримувача. Лише особистий ключ, що належить отримувачу, може розшифрувати ключ сесії.

LibreOffice uses the OpenPGP software installed in your computer. If no OpenPGP software is available you must download and install one suitable for your operating system, likely from your application store or software distribution channel.

Here are some external GPG applications known to work with LibreOffice:

You must define a personal pair of cryptography keys with the OpenPGP application. Refer to the OpenPGP software installed on how to create a pair of keys, it is usually the first step to execute after the software installation.

LibreOffice Encryption Setup

Задайте основний відкритий ключ OpenPGP для шифрування і цифрового підпису. Ці основні ключі будуть попередньо вибрані в діалоговому вікні вибору ключів кожного разу, коли ви підписуватимете або шифруватимете документ, так що вам не доведеться вибирати їх самостійно щоразу під час підписування.

Choose menu – User Data. In the Cryptography area:

Ключ OpenPGP для підписів

Виберіть Ваш ключ OpenPGP зі спадно́го списку для підписання документів ODF.

Ключ OpenPGP для шифрування

Виберіть Ваш ключ OpenPGP зі спадно́го списку для шифрування документів ODF.

При шифруванні документів завжди шифрувати для себе

Відмітьте цей прапорець, щоб також шифрувати файл Вашим публічним ключем. Ви зможете відкривати документ Вашим особистим ключем.

warning

Залиште цей параметр вибраним, якщо ви хочете мати можливість розшифрувати документи, які зашифрували для інших людей.


Encrypting documents

OpenPGP encryption requires the use of the public key of the recipient and this key must be available in the OpenPGP key chain stored in your computer. To encrypt a document:

  1. Choose File – Save As,

  2. Enter a name for the file.

  3. Mark the Encrypt with GPG key checkbox.

  4. Click Save. LibreOffice opens the OpenPGP public key selection dialog.

  5. Choose the public key of the recipient. You can select multiple keys at the time.

  6. Click OK to close the dialog and save the file.

The file is saved encrypted with the selected public keys.

warning

Only the private key belonging to the recipient can decrypt the document, unless you also encrypt for yourself.


Decrypting documents

You can only decrypt documents that have been encrypted with your public key. To decrypt a document:

  1. Open the document. An Enter password prompt shows.

  2. Enter the password of the OpenPGP private key. The document is decrypted and the contents is available.

Difference between document encryption with OpenPGP and Save with password

Both commands address confidentiality, but in different ways.

When you save a document with a password, you must remember the password inserted to open the document later. Anyone else that needs to open the document must also know the password used at save time. Therefore, the Save password must be transmitted to be known by other users.

Files encrypted with the save password cannot be decrypted unless the save password is supplied.

With document OpenPGP encryption, you define the set of users that can decrypt the document and you don’t need to send passwords through channels which security is unknown. Besides, the OpenPGP application manages the key chain of public keys more efficiently.