-
Notifications
You must be signed in to change notification settings - Fork 27
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
Getting "Error: Invalid encrypted text received. Decryption halted" while decryption #26
Comments
Could you give more information regarding this issue as follows.
|
My simple-crypto-js version is "2.2.0" in both the env. Steps to reproduce: Env2 where encryption and decryption is not working as expected: |
@email2smohanty I believe your information is invalid in the Env2. The error Here are few things to mitigate the issue.
|
Yes you are correct my simple-crypto-js version was not correct in both the env's hence it was failing, now working so closing this issue. Thanks for your hint and quick response. |
Hey there, I have the same issue but in my case I am using version 3.0.0 to both encrypt and decrypt. |
I solved my problem it's fine |
@zhamidi Could you please tell me how you fixed the issue? I am also using ^3.0.0 and facing the same issue. |
@amitvchaudhary Well what I found out is that when I fetch my encrypted file with Axios, somehow there are quotes that are added to the string, so I removed them using |
I am getting "Error: Invalid encrypted text received. Decryption halted" while decryption. Please note that same encrypted value is getting decrypted successfully in one setup(vm) but its not working in another setup(vm), my _secretKey is same I have not changed any thing.
What could be the reason?
The text was updated successfully, but these errors were encountered: