Difference between revisions of "Linux: gpg"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "== GnuPG == == Simetric Cipher == === Encryption === gpg -c file.txt we will be prompt for a password. === Decryption === gpg -d file.txt we will be prompt for a password....")
(No difference)

Revision as of 17:20, 17 May 2015

GnuPG

Simetric Cipher

Encryption

gpg -c file.txt

we will be prompt for a password.

Decryption

gpg -d file.txt

we will be prompt for a password.

Asimetric Cipher

Generate keys

gpg --gen-key

Export public key

gpg --output <destination_file.gpg> --export <public_key_ID>

Upload public key to server

gpg --send-keys --keyserver pgp.mit.edu 18384645