|
7 months ago | |
---|---|---|
LICENSE | 2 years ago | |
README.md | 7 months ago |
$ sudo apt install gnupg
$ gpg --full-generate-key
$ gpg --list-keys --fingerprint
$ gpg --export -a "My Name" > myname.asc
$ gpg --armor --export-secret-keys "My Name" > myname.asc
$ gpg --import recipient.asc
Check that the key was imported successfully by listing the keys available on my machine.
$ gpg -e -u "My Name" -r "Their Name" test.txt
$ gpg -d test.txt.gpg
$ gpg -e -r "My Name" test.txt
$ gpg --delete-key keyId
keyId
can be found with gpg --list-keys
gpg --delete-secret-key keyId
gpg --delete-key keyId