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.
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:
And you can make it visible doing a backup of your keys: