OpenPGP /text/shared/guide/openpgp.xhp OpenPGP;document encryption file encryption;OpenPGP public key;file encryption private key;file encryption file encryption;symmetric keys

Encrypting Documents with OpenPGP

%PRODUCTNAME can encrypt documents using OpenPGP public key cryptography. The document is encrypted using a symmetric encryption algorithm.
Choose menu File - Save as, select Encrypt with GPG key, Press Save.
%PRODUCTNAME can encrypt documents confidentially using OpenPGP. The document is encrypted using a symmetric encryption algorithm, which requires a symmetric key. Each symmetric key is used only once and is also called a session key. The document and its session key are sent to the recipient. The session key must be sent to the recipients so they know how to decrypt the document, but to protect it during transmission it is encrypted with the recipient's public key. Only the private key belonging to the recipient can decrypt the session key. %PRODUCTNAME 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 %PRODUCTNAME: gpg4win on Windows GPGTools on MacOS On Linux, usually already installed: gnupg - a command line utility for signing, encrypting and key management. Graphical applications for gnupg such as Seahorse (gnome), Kleopatra and KGpg (KDE). gpgme - an application program interface (API) to develop applications with GPG. 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.

%PRODUCTNAME Encryption Setup

Choose menu Tools – Options – User Data. In the Cryptography area:

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: Choose File – Save As, Enter a name for the file. Mark the Encrypt with GPG key checkbox. Press Save. %PRODUCTNAME opens the OpenPGP public key selection dialog. Choose the public key of the recipient. You can select multiple keys at the time. Press OK to close the dialog and save the file. The file is saved encrypted with the selected public keys. 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: Open the document. An Enter password prompt shows. 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.
Wikipedia on OpenPGP
o-7-6 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/NotesTContext.cxx
AgeCommit message (Expand)Author
2024-11-13loplugin:reftotemp in xmloffNoel Grandin
2024-03-12tdf#146619 Recheck xmloff/*cxx with IWYUGabor Kelemen
2021-02-19loplugin:refcounting in xmloffNoel
2020-08-14rename xmlnmspe -> xmlnamespaceNoel Grandin
2020-08-14rename nmspmap.hxx -> namespacemap.hxxNoel Grandin
2019-10-02tdf#42949 Fix IWYU warnings in xmloff/source/[s-x]*/*cxxGabor Kelemen
2019-02-20More loplugin:simplifyboolStephan Bergmann
2017-03-21Old-to-new mapping of attributes is moved into a Module:Mohammed Abdul Azeem
2017-01-25ScXMLTableRowCellContext implements fast interfaces:Mohammed Abdul Azeem
2015-12-17Hold XMLTransformerContext by rtl::ReferenceStephan Bergmann
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-06-25remove our custom RTTI from xmloff moduleNoel Grandin
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-06-13loplugin:staticcallStephan Bergmann
2014-04-15xmloff: sal_Bool->boolNoel Grandin
2013-11-11xmloff: include <> for external includesNorbert Thiebaud
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2012-06-21re-base on ALv2 code.Michael Meeks
2011-11-27remove include of pch header from xmloffNorbert Thiebaud