Companion
object Companion
Functions
Link copied to clipboard
private fun createPreferencesFile(context: Context, fileName: String, aliasName: String? = null): SharedPreferences
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getInstance(context: Context, fileName: String = "secret_shared_prefs" + context.packageName, aliasName: String = fileName): SharedPreferences
create the encrypted shared preference for the given filename
Link copied to clipboard
private fun recoverFromDefaultMasterKey(context: Context, fileName: String = "secret_shared_prefs" + context.packageName): MutableMap<String, MutableSet<String>>
This method is to extract the data from the sharedPreference which encrypted with MasterKey, and delete the master key.