Skip to content

Instantly share code, notes, and snippets.

Avatar

Ali Muzaffar alphamu

View GitHub Profile
@alphamu
alphamu / AbstractParcelDiskCache.java
Last active May 2, 2019 — forked from VladSumtsov/DiskCache
Encrypted persisted and cached Parcelable data disklrucache and facebook conceal on Android.
View AbstractParcelDiskCache.java
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain;
import com.facebook.crypto.Crypto;