Skip to content

Commit

Permalink
Master key creation in protected block
Browse files Browse the repository at this point in the history
  • Loading branch information
“Akshay committed Oct 9, 2023
1 parent 45a22b8 commit 1f69aab
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class IterableKeychain {
IterableLogger.v(TAG, "SharedPreferences being used")
} else {
// See if EncryptedSharedPreferences can be created successfully
val masterKeyAlias = MasterKey.Builder(context)
.setKeyScheme(MasterKey.KeyScheme.AES256_GCM)
.build()
try {
val masterKeyAlias = MasterKey.Builder(context)
.setKeyScheme(MasterKey.KeyScheme.AES256_GCM)
.build()
sharedPrefs = EncryptedSharedPreferences.create(
context,
encryptedSharedPrefsFileName,
Expand Down

0 comments on commit 1f69aab

Please sign in to comment.