Ask Your Question

Fail to encrypt file with gpg

asked 2015-09-07 17:43:38 -0600

wendycc gravatar image

updated 2015-09-07 17:44:05 -0600

Hello I try to encrypt a file with gpg but I get this.

$ gpg .encrypted_file.txt

gpg: no valid OpenPGP data found.

gpg: processing message failed: eo

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-08 06:02:58 -0600

updated 2015-09-08 06:05:56 -0600

You need to specify the option to encrypt the file, the synthax is : gpg -r <ID> -e <file>


  • -r <id> : specify which key to use (gpg --list-key and grab the email associated to the key you want to use).
  • -e <file> : encrypting action
edit flag offensive delete link more


Thanks. Sorry I know I could just read the manual but I was too lazy last night. I saw a guide, that is wrong and should be updated. Also -d to decrypt and -o to output to file.

wendycc gravatar imagewendycc ( 2015-09-08 08:16:21 -0600 )edit

Question Tools



Asked: 2015-09-07 17:43:38 -0600

Seen: 130 times

Last updated: Sep 08 '15