Created
February 3, 2023 18:25
-
-
Save tdcolvin/64bc216c04d32f34ec18a1c56b06bf0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val sharedPreferences by lazy { | |
//The name of the file on disk will be this, plus the ".xml" extension. | |
val sharedPrefsFile = "sharedPrefs" | |
//Create the EncryptedSharedPremises using the key above | |
EncryptedSharedPreferences.create( | |
sharedPrefsFile, | |
mainKeyAlias, | |
getApplication(), | |
EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV, | |
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment