-
Notifications
You must be signed in to change notification settings - Fork 78
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
Decrypt method in Crypt.js fails #11
Comments
Never seen such problem. |
|
Thank you very much. This replacement fixes my problem XD |
I was always getting a failure in the Decrypt method due to character issues. I had to replace one line to get it to work.
This:
let encoded = JSON.parse(this.constructor.base64decode(encodedString));
Became this:
let tempJSON = this.constructor.base64decode(encodedString) let encoded = JSON.parse(tempJSON.substr(0, tempJSON.indexOf('}')+1));
The text was updated successfully, but these errors were encountered: