I would like to know how data encryption and decryption works in PGP. As part of encryption, "gpg --gen-key" is used to generate the keys, And I got a public key, however I am not sure how to get private key. does it store in a specific location? is there any command to generate? I don't have any clue.
This is not specified in the document that I am following.
To delete a key:Right click, and choose Delete. Alternatively you can also select Edit ▸ Delete to delete the key. When you delete a GnuPG key that has been published on a key server, you only delete the key in your GnuPG keyring because a copy of the public key will still be present on some key server.
The private GPG keys are encrypted and stored in the secret keyring, and public keys are maintained with certificates attesting to their trustworthiness in the public keyring.
The private key is not "visible" like the public one, but you can get it following these instructions:
You can list private keys this way, in order to check if it exists:
gpg --list-secret-keys
And you can make it visible doing a backup of your keys:
gpg --armor --export-secret-keys [email protected] > your_name.asc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With