Changing preferences

Robert J. Hansen rjh at
Thu Sep 18 00:24:45 CEST 2008

Faramir wrote:
> I have a question... and maybe I have seen the answer before, but I 
> can't remember it...

You saw the answer yesterday.

> When I use showpref command, the cypher algorithms are shown in the
> right order according to gpg.conf, but the digest order is not in the
> right order...

'showpref' is horribly misnamed.  You are advertising your cryptographic
capabilities far more than you are specifying a preference in algorithms.

The way GnuPG picks algorithms is simple.  Walk down through the
_sender's_ preference list.  Find the first algorithm that's listed on
the recipient's _capability_ list.  Use that algorithm.

More information about the Gnupg-users mailing list