Generate a key pair
# gpg --gen-key
List public keys
# gpg --list-keys
Export a public key
# gpg -o mykey.key --export --armor key-id
Import a public key
# gpg --import file.key
Encrypt a file
# gpg --encrypt --armor -r key-id <file>
Decrypt a file
# gpg --decrypt <file>
No comments:
Post a Comment