saveEncryptedPreference

fun saveEncryptedPreference(key: String, preference: String)

Saves an encrypted preference value for the given key.

This function stores the provided preference as an encrypted value in the SharedPreferences using the specified key. It uses the getSharedPreferences function to access the SharedPreferences instance.

Parameters

key

The key under which the preference value will be stored.

preference

The encrypted preference value to be saved.