You can look up available algorithms by running gpg --version
, An example output might include:
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Start the edit menu using gpg --edit-key [key-id]
(replacing [key-id]
with your key id, and you might have to use gpg.exe
again as described above). Inside, you can use showpref
to list the currently set up preferences, and setpref
to change them. The user interface for doing so is horrible, and you have to provide a long list of cipher, digest and compression algorithms, while the preferred ones always have to be listed first.
An article on debian-administration.org also describes this procedure, and proposes following preferences, which seem reasonable:
setpref CAMELLIA256 SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
(There will be a preview of the result, before you really edit the key)
Additionally for future keys, to enforce the use of CAMELLIA256, edit your gpg.conf
file and add following line:
personal-cipher-preferences CAMELLIA256