Closed ghiyatshanif closed 4 years ago
Very nice question. Can't wrap my head around it, would you be so kind to provide more detail about:
Also, you noticed this error with a specific pattern or it appears to show up randomly?
I was having this same error some time ago but I could not find a fix, specifically, because it was subtle. Sometimes my app would randomly crash because of this exception being thrown out of nowhere.
Then I made a sample app that just pushed and pulled garbage values to and from the preferences but it just worked fine, and after something like 100'000 I/O operations I gave up on this.
It has to do with openssl decryption algorithm and padding. That's what we have by now, I'll do some research.
This could be useful
In v2 the issue will not be present because of the different approach we will take towards encryption and encoding system
Hi, I'm getting this intermittent error while getting accessToken saved in CryptoPrefs. I have no control of the accessToken value saved to the preference as it's coming from the API, do you guys have any idea why it's happening?
here's how i try to get the accessToken:
sharedPref.pref().get(REFRESH_TOKEN, emptyString())
pref()
returnsCryptoPref