Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encrypt cache OkHttp android

Because of cache class is set to final, I can not write my own implementation and I am needing to encrypt the cache because is sensitive data. I'd try with an interceptor but there is nothing like a CacheResponseInterceptor to encrypt and decrypt it. How can I do this using OkHttp?

like image 546
Eleazar Estrella Avatar asked Mar 03 '26 01:03

Eleazar Estrella


1 Answers

@CommonsWare That's not as practical as i wanted to but finally we decided not to encrypt it. The data is not sensitive enough to waste time in this workaround. Thank you for adding it to the wishlist. I hope they'll include it in the next release.

like image 107
Eleazar Estrella Avatar answered Mar 04 '26 19:03

Eleazar Estrella