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

cryptography.exceptions.InvalidSignature: Signature did not match digest #3

Open
toutpuissantged opened this issue Dec 11, 2021 · 0 comments

Comments

@toutpuissantged
Copy link

File "D:\Code\Python-Project\Facebook-Posts-Automation\env\lib\site-packages\cryptography\hazmat\primitives\hmac.py", line 69, in verify
ctx.verify(signature)
File "D:\Code\Python-Project\Facebook-Posts-Automation\env\lib\site-packages\cryptography\hazmat\backends\openssl\hmac.py", line 76,
in verify
raise InvalidSignature("Signature did not match digest.")
cryptography.exceptions.InvalidSignature: Signature did not match digest.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\Code\Python-Project\Facebook-Posts-Automation\UI\Ui_MainWindow.py", line 579, in run_task
task_obj = self.get_task_obj(task)
File "d:\Code\Python-Project\Facebook-Posts-Automation\UI\Ui_MainWindow.py", line 566, in get_task_obj
user = self.db_wrap.get_user_by_id(user_id)
File "d:\Code\Python-Project\Facebook-Posts-Automation\Modules\DatabaseWrapper.py", line 72, in get_user_by_id
return user[0], user[1], self.db_encrypt.decrypt(user[2])
File "d:\Code\Python-Project\Facebook-Posts-Automation\Modules\Encryption.py", line 22, in decrypt
return self.f.decrypt(encrypted_password).decode()
File "D:\Code\Python-Project\Facebook-Posts-Automation\env\lib\site-packages\cryptography\fernet.py", line 81, in decrypt
return self._decrypt_data(data, timestamp, time_info)
File "D:\Code\Python-Project\Facebook-Posts-Automation\env\lib\site-packages\cryptography\fernet.py", line 138, in _decrypt_data
self._verify_signature(data)
File "D:\Code\Python-Project\Facebook-Posts-Automation\env\lib\site-packages\cryptography\fernet.py", line 122, in _verify_signature
raise InvalidToken
cryptography.fernet.InvalidToken

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

1 participant