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

Fix typos to make key decryption work #148

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Conversation

belamu
Copy link

@belamu belamu commented Nov 7, 2024

Closes #147

My previous pull request #146 introduced several typos in the variables that broke the decrpytion of the encrypted key for kde and gnome (which was just introduced in the PR). Additionally it raised an error that resulted in a non-helpful and wrong error message "Failed to decrypt Signal password" instead of the helpful error message that was displayed in version 3.2.0 (which explained getting the key in Gnome).

This PR fixes those issues.

It does not fix the very general exception handling in sigexport/data.py line 28 which catches all Exceptions with the same unhelpful error message which in turn is necessary due to the general "raise" in sigexport/crypto.py line 82 and line 107. (Line numbers in new code.) This should (!) not be a user-facing issue anymore since non of those "raise" instructions should be run after this PR but in case of other Exceptions in decrypt() (sigexport/crypto.py) there is no distinction.

Tested with setup of NixOS/nixpkgs#353086 on KDE. Not tested on Gnome nor MacOS (nor Windows).

@carderne carderne merged commit d544cc1 into carderne:main Nov 7, 2024
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

Successfully merging this pull request may close these issues.

broken password retreival on gnome and kde
2 participants