Quickness easy gpg cheatsheet
to create a key:
to export a public key into file public.key:
to export a private key:
to import a public key:
to delete a public key (from your public key ring):
to delete an private key (a key on your private key ring):
To list the keys in your public key ring:
To encrypt data, use:
To decrypt data, use:
I haven't used the commands:
gpg --gen-keygenerally you can select the defaults.
to export a public key into file public.key:
gpg --export -a "User Name" > public.key
to export a private key:
gpg --export-secret-key -a "User Name" > private.key
to import a public key:
gpg --import public.key
to delete a public key (from your public key ring):
gpg --delete-key "User Name"
to delete an private key (a key on your private key ring):
gpg --delete-secret-key "User Name"
To list the keys in your public key ring:
gpg --list-keys
To encrypt data, use:
gpg -e -u "Sender User Name" -r "Receiver User Name" somefile
To decrypt data, use:
gpg -d mydata.tar.gpg
I haven't used the commands:
gpg --edit-keygpg --gen-revoke
Comments
Post a Comment