Skip to content

Error: Encrypted private key is authenticated using an insecure two-byte hash #1525

Answered by larabr
martgil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @martgil ,
the error is due to a legacy (and insecure) key encryption mechanism; see also #1212 (comment).

S2K usage has a different purpose than key usage flags, as it's only needed to decrypt the key. You should still be able to dump the s2k info with many tools. I think GPG should also allow importing/decrypting the key (might require using some specific flag), and then you can re-export it with the same passphrase, to have it in the newer format.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@martgil
Comment options

@SudhirkumarRamani
Comment options

Answer selected by martgil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants