[Gpg4win-users-en] Changing the encryption algorithm used for PGP/GPG private key
Daniel Colquitt
hello at danielcolquitt.com
Mon Feb 14 10:28:47 CET 2022
Thank you for the prompt response, Bernhard.
Inspecting the contents of $GNUPGHOME/private-keys-v1.d/ shows files with the following lines
> ...
> (protected openpgp-s2k3-ocb-aes ((sha1 ...
> ...
This would suggest that the keys are still being stored with AES-128 and hashed with SHA1. Would this question still be best addressed to gnupg-users@?
Yours,
Dan
> -----Original Message-----
> From: Bernhard Reiter <bernhard at intevation.de>
> Sent: 14 February 2022 09:21
> To: gpg4win-users-en at wald.intevation.org
> Cc: Daniel Colquitt <hello at danielcolquitt.com>
> Subject: Re: [Gpg4win-users-en] Changing the encryption algorithm used
> for PGP/GPG private key
>
> Hi Daniel,
>
> Am Samstag 12 Februar 2022 21:32:51 schrieb Daniel Colquitt:
> > I've read various turorials and posts regarding changing the algorithm
> > used to encrypt my private PGP keys.
>
> my guess is that the options change the behaviour of the internal storage
> of private keys, but not the export behaviour.
> So you'd need to inspect the contents of $GNUPGHOME/private-keys-
> v1.d/ (use a text editor) and see of the options change something.
>
> > However, nothing I have tried seems to work. I am using gpg4win:
>
> > s2k-mode 3
> > s2k-cipher-algo AES256
> > s2k-digest-algo SHA512
> > s2k-count 65011712
> > cipher-algo AES256
>
> > gpg -vv --cipher-algo AES256 --export-secret-keys
> > A7AA75FD6A11F453DE501E38D3E3B91787699C75 -a > key.txt
>
> > gpg --list-packets key.txt
>
> > :secret key packet:
> > iter+salt S2K, algo: 7, SHA1 protection, hash: 2,
>
> > This would seem to suggest that the key is still encrypted using
> > AES128 (algo 7) and a SHA1 hash.
>
> Take this question to the gnupg-users@ as it is platform independent and
> thus on-topic there.
>
> Best Regards,
> Bernhard
>
>
> --
> www.intevation.de/~bernhard +49 541 33 508 3-3 Intevation GmbH,
> Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998 Geschäftsführer Frank
> Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
More information about the Gpg4win-users-en
mailing list