Tiny/Pico tip explaining how to encrypt a file using GPG to share it with one of your colleague or friend.

We start by checking if our friend key is aleady registered in our system using the following command:

gpg --list-public-keys

If it’s ok we just have to execute the following command to encrypt our file to share it securly to our friend:

gpg --encrypt --recipient [email protected] secret_file_to_encrypt.txt 

And voila that’s all.