From 3c04ad18b7663d0b4af788398eab0efa831c609f Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 14 Jan 2026 13:53:04 -0600 Subject: [PATCH] Signed-off-by: Matt Bruce --- SecureStorageSample/SecureStorageSampleApp.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)