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

Python fernet invalid token #3

Open
ttw1203 opened this issue Jul 8, 2021 · 0 comments
Open

Python fernet invalid token #3

ttw1203 opened this issue Jul 8, 2021 · 0 comments

Comments

@ttw1203
Copy link

ttw1203 commented Jul 8, 2021

I'm running python 3.7.2 on my seedbox. How could I fix this?

`ttw1203e@app03:~/RED_OPS_Better$ python3 red_ops_better
Password Must include Minimum length (10), Capital and lower letter, number and special character
Provide a Password for Encry and Decrp:
Password Must include Minimum length (10), Capital and lower letter, number and special character.
Provide a Password for Encry and Decrp:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 104, in _verify_signature
h.verify(data[-32:])
File "/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/hmac.py", line 67, in verify
ctx.verify(signature)
File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/hmac.py", line 75, 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 "red_ops_better", line 421, in
main()
File "red_ops_better", line 172, in main
file_response = cred_file_encrypt_decryption(cipher, authFile_enc, encry_decry=0)
File "red_ops_better", line 76, in cred_file_encrypt_decryption
decrypted_data = cipher.decrypt(data).decode('utf-8')
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 75, in decrypt
return self._decrypt_data(data, timestamp, ttl)
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 117, in _decrypt_data
self._verify_signature(data)
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 106, in _verify_signature
raise InvalidToken
cryptography.fernet.InvalidToken
ttw1203e@app03:~/RED_OPS_Better$`

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