{gnupg 2.1.6} Howto change s2k cipher from AES -> AES256?

thomas dieamme at googlemail.com
Sun Jul 12 20:46:32 CEST 2015


I'm trying with gnupg version 2.1.6.

Based on the changelog: 

Is there a way to change the encryption-cipher for the 
secret Keys in "private-keys-v1.d" ?

I tried it with:

  gpg2 --openpgp --s2k-cipher-algo AES256 --s2k-digest-algo SHA512 \
  --s2k-mode 3 --s2k-count 65000000 --edit-key Key-id

  gpg> passwd --> change passphrase --> save

But this didn't work for me.

With the default config the secret keys are encrypted and stored
with AES128 and SHA1.

How to change it?

Thank you and best regards,

More information about the Gnupg-users mailing list