passforios icon indicating copy to clipboard operation
passforios copied to clipboard

The password for the private PGP key is wrong

Open cavemanr opened this issue 4 years ago • 7 comments

Hello, I have noticed that passwords for PGP keys must not exceed a maximum length.

I have tried passwords with and without special characters with a length of 48 characters and with these I was able to decrypt my passwords.

passwords working:

xxfxgb9WC5NQGf0flw3BpLudsrlmKafehRmYVrj6KtO6JF9c

Ui<)jOR^(w(:<2~1gP|2R7*2hg&/HZXJJqL+}aXij01-`\$J

However, when I tried to use a password with 96 characters with and without special characters, I got the error message that my password for the PGP key was not correct.

passwords not working:

ec-v~UD8Hz`{qO<<("`4i%!_RxBB:tj0A(}@FzRc9OLFyEc<'KW(QSiJ3HC%d%C=ZS*{G^<$~9ecE:L#-{08]}<e_OFhp2u[

-dA;Js_>zvu{@1OhAYr1QyYg%o73u2nv%}W`,(Z&k/8LMj4}=`?0bpXFcA-V7eQP7GSQg],6Z,Afp#uG-22Ae-_`7OW!1[LV

It would be great if the documentation contained a hint about the maximum password length or removed the limitation for the maximum number of characters.

ima_cbb8966

Translation: Password cannot be displayed The password for the private PGP key is wrong

cavemanr avatar Jun 07 '20 16:06 cavemanr

I can actually not reproduce what you described. With a new key (gpg --full-generate-key with standard settings, i.e. RSA with length 2048) and the first of your lengthy passwords everything work as expected. Which kind of key did you use?

SimplyDanny avatar Jun 18 '20 18:06 SimplyDanny

I’ve used a RSA 4096 Bit key. And on several iOS devices the password could not unlock the RSA Key.

cavemanr avatar Jun 18 '20 19:06 cavemanr

Which version of the app do you use?

SimplyDanny avatar Jun 18 '20 19:06 SimplyDanny

Which version of the app do you use?

I’m using 0.9.0 (21)

cavemanr avatar Jun 20 '20 09:06 cavemanr

It works for me even with the "old" version. If you want I can have another try with a key pair and a password which do not work for you. Just attach them to the issue. And please tell which method you use to import the keys.

SimplyDanny avatar Jun 21 '20 14:06 SimplyDanny

It seems that this issue is not resolved till now (version 0.11)

dream-solitary avatar Feb 21 '21 14:02 dream-solitary

My bad, it supports RSA4096, but I needed the subkey ID from GPG Keychain to do the export correctly.

kode54 avatar Feb 23 '22 21:02 kode54