Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

use AdvanceEncryptor to fix encrypting cache error #147

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

ZDZN
Copy link

@ZDZN ZDZN commented Sep 27, 2019

The RxCache interface methods always load from network when using @EncryptKey and @Encrypt. I thought that it must have an error when encrypting or decrypting the cache data, but when I run the test file, the result was all green.
Thus I directly use the Encryptor to encrypt and decrypt file in my testing android project, I found that the BuiltInEncryptor cannot decrypt the data.
Finally, I found some information about the encrypt method difference between java platform and android platform.
I replace the BuiltInEncryptor with AdvanceEncryptor in RxCacheModule, the new Encryptor can run the correct result on android platform and is also tested in java platform.
Now I uses my build in my android project and I hope this pull request can fix this bug.
Thank you for your nice library.

@ZDZN ZDZN marked this pull request as ready for review September 27, 2019 08:12
@ultraon
Copy link

ultraon commented Aug 6, 2020

It is a working solution, thanks @ZDZN !!!
I've created JitPack reference with this fix, use com.github.ultraon.RxCache:runtime:63d5ac1412 until the PR is merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants