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

SyncCryptLegacy.symmetricDecrypt() failed, gcm: tag doesn't match #11

Open
JoshuaAway opened this issue Jan 8, 2025 · 2 comments
Open

Comments

@JoshuaAway
Copy link

Hey there,

I hope you're doing well. I'm encountering an issue with SyncCryptLegacy.symmetricDecrypt() when decrypting some files. The code throws a "gcm: tag doesn't match" error. This only happens on a few files on my account, not all.

If you have a minute, could we reach out via email or Telegram? I don't mind compensating you for your help, your repo has already been super helpful.

Best, Josh

@k-aito
Copy link
Owner

k-aito commented Jan 8, 2025

Hello @JoshuaAway

I didn't use my code for a long time, I vaguely remember that the decrypting in chunk was tricky but the method to download a specified ID and decrypt it was working pretty well.

I will take a look later to see if it's still working. About compensating, I don't mind setting up a kind of donation think through GitHub if you really want to thank me, but it's more a hobby project that doesn't have a real finishing touch, so I don't think it must be compensating.

Anyway, I come back to you after my test with a simple download and decryption.

@k-aito
Copy link
Owner

k-aito commented Jan 8, 2025

@JoshuaAway

Little update, the code must still work, but it looks like the node version I have right now got an issue because my Buffer(data, "base64") is getting an encoding issue. But my test with a python version of my code that I didn't push yet because I wanted to finish it properly is still downloading the files and decrypting them.

Can you try to just use the "download_decrypt" method just to see if it's working and if not I will see to make a new repo for the python version even if it's not finished yet.

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

2 participants