I know some of you are good at gpg. I have some basic questions. I am going to make a new pair of keys because my existing public key is not working. I didn't make a revocation certificate. I did a rotten job when creating public and private keys. The reason was I was not aware of all the pros and cons of gpg and PKI .
I had a crash in my previous computer. I didn't make any backup of pgp folder or keys. Thus, I lost everything.
Do you know the best way of backing up of your gpg folder and the keys?
I know the following will copy your public key and private key.
[root@c83-251-139-53 Nissanka]# gpg --export > pubkeys
[root@c83-251-139-53 Nissanka]# gpg --export-secret-keys > privkeys
How do I put them on a USB stick?
-----------------------------------------------------------
Finally, I know the following command will encrypt a file on my computer
[root@c83-251-139-53 Nissanka]# gpg -e -r Nissanka foo.txt
[ Here I am assuming that I have file named 'foo.txt'.]
The above will create a file name 'foo.txt.gpg' .
The file command will decrypt it and give me back the original file.
[root@c83-251-139-53 Nissanka]# gpg --output foo.txt --decrypt foo.txt.gpg
Please tell me if my presumptions are incorrect.
How do I encrypt folders using the gpg system?
Now I have learnt some people had gone into my computer read some files. So I must encrypt some folders which contains sensitive information; this will make life difficult for people to open the encrypted folders.