https://kotlinlang.org logo
#android
Title
# android
h

hetang

08/26/2019, 5:22 AM
a

Akbar

08/26/2019, 9:40 AM
Hi I went through this link but when I trying from android studio EncryptedSharedPreferences is not recognised ? Any help
?
h

hetang

08/26/2019, 8:44 PM
you need to add jetpack library for it
image.png
a

Akbar

08/27/2019, 6:11 AM
hey what is file name in this following code snippet val sharedPreferences = EncryptedSharedPreferences .create( fileName, masterKeyAlias, context, EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV, EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM ) val sharedPrefsEditor = sharedPreferences.edit()
as I want the secured shared preference file to store my values
?
h

hetang

08/27/2019, 4:53 PM
filname is secured file to store preferences
a

Akbar

08/28/2019, 5:17 AM
thanks @hetang
but minSdkVersion for this is 23
it wont work in below sdk devices
h

hetang

08/28/2019, 3:17 PM
at-least you can secure devices above 23
a

Akbar

08/29/2019, 6:04 AM
yeah , thats cool
we can use the AEX encryption in <23 devices right?