Update SecureStorageSample

This commit is contained in:
Matt Bruce 2026-01-14 13:53:04 -06:00
parent f1f25c4b78
commit d250b19ae4

View File

@ -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)