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 00:57] – derek | documentation:gnupg-intro [2019/10/03 01:15] (current) – [Data encryption] derek | ||
|---|---|---|---|
| Line 63: | Line 63: | ||
| {{documentation: | {{documentation: | ||
| - | Finally type your name, email and comment for the key pair (this is optional, you can leave it blank). After this please be patient, some time is required to generate a key pair. | + | Finally type your name, email and comment for the key pair (this is optional, you can leave it blank). |
| + | |||
| + | **NOTE:** Don't forget your passphrase, you can loss your private key without passphrase. | ||
| + | |||
| + | After this please be patient, some time is required to generate a key pair. | ||
| ==== Import public key ==== | ==== Import public key ==== | ||
| + | |||
| + | To import someone' | ||
| ==== 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.1570064225.txt.gz · Last modified: by derek
