Skip to content

Comment on Encryption with Gnu Privacy Guard (GPG)

Comments

"To encrypt a File:"

    gpg -o encrypted_file.gpg –encrypt -r original.file  
# they didn't put recipient after -r ?

In this case it will just prompt you for for the recipient. This command is too verbose though. You can type:

gpg -e file

The output will be file.gpg. It will ask you for a recipient unless you have "default-recipient" or "default-recipient-selt" set in gpg.conf.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.