Xfce Forum

Sub domains
 

You are not logged in.

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

fixit
Member
Registered: 2015-01-19
Posts: 129

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?


Ubuntu-Mate 24.04

Offline

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

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: Custom action to decrypt files using gpg

From gpg man page:

--decrypt
       -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!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 516.55 KiB (Peak: 531.1 KiB) ]