Custom GPG options?

I want to set custom gpg options for symmetric encryption, like I use a custom gpg.conf in GnuPG.

  • Is there an option in Duplicati to pass parameters to gpg? (e.g. --cipher-algo TWOFISH --cert-digest-algo SHA512)
  • Or is it possible to edit the gpg.conf file, so Duplicati always uses gpg with these parameters?

Duplicati 2.0.4.5(latest)@Win10Pro

Hello @Hill and welcome to the forum!

I don’t use GPG, but the help text looks to me like passing additional switches to gpg should work:

C:\Program Files\Duplicati 2>Duplicati.CommandLine.exe help gpg

Duplicati is shipped with an interface to GNU Privacy Guard. It requires that
the gpg executable is available on the system. On Windows it is assumed that
this is in the default installation folder under program files, under Linux
and OSX it is assumed that the program is available via the PATH environment
variable. It is possible to supply the path to GPG using the
--gpg-program-path switch.

Options:
  --gpg-encryption-disable-armor = true
    The GPG encryption/decryption will use the --armor option for GPG to
    protect the files with armor. Specify this switch to remove the --armor
    option.
  --gpg-encryption-enable-armor = false
    Use this option to supply the --armor option to GPG. The files will be
    larger but can be sent as pure text files.
  --gpg-encryption-command = --symmetric
    Overrides the default GPG encryption command "--symmetric", normal usage
    is to request asymetric encryption with the setting --encrypt
  --gpg-decryption-command = --decrypt
    Overrides the GPG command supplied for decryption
  --gpg-encryption-switches
    Use this switch to specify any extra options to GPG. You cannot specify
    the --passphrase-fd option here. The --encrypt option is always
    specified.
  --gpg-decryption-switches
    Use this switch to specify any extra options to GPG. You cannot specify
    the --passphrase-fd option here. The --decrypt option is always
    specified.
  --gpg-program-path
    The path to the GNU Privacy Guard program. If not supplied, Duplicati will
    assume that the program "gpg" is available in the system path.




C:\Program Files\Duplicati 2>
1 Like