diff --git a/SecureStorageSample/SecureStorageSampleApp.swift b/SecureStorageSample/SecureStorageSampleApp.swift index 71329d0..6d4de84 100644 --- a/SecureStorageSample/SecureStorageSampleApp.swift +++ b/SecureStorageSample/SecureStorageSampleApp.swift @@ -16,9 +16,11 @@ struct SecureStorageSampleApp: App { // 1. Global Encryption Configuration // We isolate our library's master key in the Keychain by providing a specific service // and account name. This prevents conflicts with other apps using the same library. + // We also set PBKDF2 iterations for consistent security across the app. let config = EncryptionConfiguration( masterKeyService: "SecureStorageSample", - masterKeyAccount: "AppMasterKey" + masterKeyAccount: "AppMasterKey", + pbkdf2Iterations: 20_000 ) await StorageRouter.shared.updateEncryptionConfiguration(config)