documentation:gnupg-intro
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:gnupg-intro [2019/10/03 01:03] – derek | documentation:gnupg-intro [2019/10/03 01:15] (current) – [Data encryption] derek | ||
|---|---|---|---|
| Line 74: | Line 74: | ||
| ==== Commit your own public key ==== | ==== Commit your own public key ==== | ||
| + | |||
| + | To publish your public key you need to provide it first. To get a file with your own public key, just type the following in terminal: '' | ||
| ==== Sign the data ==== | ==== Sign the data ==== | ||
| ==== Data encryption ==== | ==== Data encryption ==== | ||
| + | |||
| + | === Encrypt === | ||
| + | To encrypt some data (e.g. file in the example below) you need to know a recipient and his/her public key. On the example below we're encrypting data in file secret.pdf for alice@askele.com: | ||
| + | |||
| + | Result file will be secret.pdf.gpg | ||
| + | |||
| + | === Decrypt === | ||
| + | In order to decrypt some data (e.g. file) you need to type the following (assuming you receive secret.pdf.gpg): | ||
| + | |||
| + | Result will be stored in secret.pdf which is a plain (decrypted) data. | ||
documentation/gnupg-intro.1570064607.txt.gz · Last modified: by derek
