How to enable a block cipher or hash algorithm for a keypair?

David Shaw dshaw at
Mon Nov 6 03:52:38 CET 2006

On Sun, Nov 05, 2006 at 09:29:43AM -0600, Robert J. Hansen wrote:

> ... If what you want is to start using a different algorithm, a better
> idea than using --cipher-algo and --digest-algo is to use the algorithm
> preferences.  Try adding these two lines to gpg.conf:
> personal-cipher-preferences TWOFISH AES256 AES192 AES128 3DES
> personal-digest-preferences SHA512 SHA384 SHA256 SHA224 RIPEMD160

Note, though, that neither of these will take effect unless the other
keys participating in the encryption agree.  You can only use an
algorithm that is present in the preferences of all keys you are
encrypting to.


More information about the Gnupg-users mailing list