Friday, July 14, 2023

GPG PGP encryptions

Facebook

Download  GPG:

brew install gpg2
Or 
sudo yum install gnupg
Or
sudo apt install gnupg
Or
https://gnupg.org/download/index.html
Verify Installation:

gpg --version

Generate KeyPair:

gpg --gen-key

You will be asked for your key details. Fill them out. You can leave the comment field empty. After that, you will be asked for a passphrase, and then you'll be given a prompt to type it. You can leave it empty if you want. But you need to remember what you type in if you put something (required for decryption later.)

List all GPG  key pairs

gpg --list-secret-keys

Export your Public Key:

Once you've generated your keys, export your public key with the following command

gpg -export --armor firstName.lastName@youremail.com

Import others Public Key:

Once you've generated your keys, export your public key with the following command

gpg --import abc_public.key

And you can check the list of keys by gpg --list-public-keys


0 comments:

Post a Comment

I love to entertain onymous user Comment !

Pages

 ©mytechtoday.com 2006-2010

 ©Mytechtoday

TOP