Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem decrypting password #2904

Open
mesteryui opened this issue Mar 24, 2024 · 3 comments
Open

Problem decrypting password #2904

mesteryui opened this issue Mar 24, 2024 · 3 comments

Comments

@mesteryui
Copy link

mesteryui commented Mar 24, 2024

Expected Behavior

I try to de crypt a .gpg file of a password created my computer with pass creating a folder before pass insert hkl/kbj and when I sync that files on my phone openkeycahin don't allow decrypt of course I used the same gpg key that I have on my computer and that mustn't be. With a file with a password created without any folder that doesn't happen

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

  1. Sync the files
  2. Open openkeychain view the password
  3. Then openkeychain give error OpenGPG exception
  4. In computer that problem doesn't exist

Context

Your Environment

  • Android Version: 14
  • Device Model: Redmi Note 9 Pro
  • OpenKeychain Version: 6.0.4
  • From Google Play or F-Droid?: F-Droid
@rafaelazvdo
Copy link

What version of gpg was used to create the key pair and what version of gpg was used to encrypt the files?

@mesteryui
Copy link
Author

For create the keys and encrypt the files I used GPG version 2.4.5 but only happens with the files in a folder

@pspoe
Copy link

pspoe commented May 20, 2024

@mesteryui I'm pretty sure that files in/not in a directory is not the problem, but AEAD which is enabled by default in gpg v2.4. See gpg failing with no error for one of my encrypted files and disabling AEAD in gnupg.
TL;DR: You have to fix your encryption key on your computer and re-encrypt your passwords.

I did, however, have a similar problem with a Debian gpg v2.2.40, which does not do AEAD yet. There, some newer passwords were created with ID 0000000000000000, due to changed options hidden-encrypt-to and default-recipient and successfully decrypted due to option try-secret-key (in .gnupg/gpg.conf).

Looks like the later option has no pendant in open-keychain. After re-encrypting my passwords with an explicit recipient and synching to Android decryption worked there, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants