
GnuPG Command Line Summary 181
Encryption and Decryption
Use the --encrypt option to encrypt files, giving the name of
the file you want to encrypt as an argument. GnuPG will inter-
actively ask you for the UID of each public key you want to use
in the encryption process and then encrypt the files so that
they can only be read with the corresponding private key(s).
To decrypt a file, use the --decrypt option. GnuPG will
prompt you for your passphrase and print the decrypted mes-
sage to the terminal.
Signing Files
To sign a file, use the --sign option and give the name of
the file you wish to sign. To verify a digital signature, use the
--verify option. ...