1

I want to use the setpref command (under --edit-key ) to set a key's prefered hash-algorithms in gnupg2, and was wondering if there is a way to list which hashes my version of gpg supports?

1

The supported hashes can be obtained by running the command with the --version flag.

From the GnuPG setpref documentation (bold emphasis mine):

setpref string

    Set the list of user ID preferences to string for all (or just the
    selected) user IDs. Calling setpref with no arguments sets the preference
    list to the default (either built-in or set via --default-preference-
    list), and calling setpref with "none" as the argument sets an empty
    preference list. Use gpg --version to get a list of available algorithms.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.