Xfce Forum

Sub domains

You are not logged in.

#1 2018-10-08 02:54:35

Registered: 2015-01-19
Posts: 41

Custom action to decrypt files using gpg

I use this to encrypt files.

mate-terminal -x gpg -c %f

What should I use to decrypt them and send output to a file?


#2 2018-10-08 11:21:15

Registered: 2014-07-28
Posts: 418

Re: Custom action to decrypt files using gpg

From gpg man page:

       -d     Decrypt the file given on the command line (or STDIN if no file is specified) and write it to STDOUT (or the file specified with --output). If the decrypted  file is signed, the signature is also verified. This command differs from the default operation, as it never writes to the filename which is included in the file and it rejects files that don't begin with an encrypted message.

--output file
       -o file   Write output to file. To write to stdout use - as the filename.

So, could it be something akin to:

mate-terminal -x gpg -d %f  -o %f_decrypted

Just guessing here, man gpg is quite a read!


Board footer

Powered by FluxBB