Page MenuHome GnuPG

Better error string for wrong passphrase
Open, Needs TriagePublic

Description

The error string for wrong passphrase is "Bad Passphrase" - but apparently we (want to) change it in the frontends to "Wrong passphrase" - shouldn't we fix it at the core instead?

Event Timeline

Here is how we use the passphrase error codes:

11 = (0, 11) = (GPG_ERR_SOURCE_UNKNOWN, GPG_ERR_BAD_PASSPHRASE) = (Unspecified source, Bad passphrase)

    GNUPG: - The entered passphrase does not verify

31 = (0, 31) = (GPG_ERR_SOURCE_UNKNOWN, GPG_ERR_INV_PASSPHRASE) = (Unspecified source, Invalid passphrase)

    GNUPG:  - Required constraints of the passphrase are not met.

What is wrong with "bad" - In German we translate it to "Falsches Passwort" in Danish to "Ødelagt adgangsfrase"

Both in Kleopatra and in Okular the BAD_PASSPHRASE gets converted to "Wrong passphrase" rather than just using the error string from gpg(me).

Also; The Danish translation is closer to "destroyed passphrase"