Update SecureStorageSample
This commit is contained in:
parent
f1f25c4b78
commit
d250b19ae4
@ -16,9 +16,11 @@ struct SecureStorageSampleApp: App {
|
|||||||
// 1. Global Encryption Configuration
|
// 1. Global Encryption Configuration
|
||||||
// We isolate our library's master key in the Keychain by providing a specific service
|
// 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.
|
// 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(
|
let config = EncryptionConfiguration(
|
||||||
masterKeyService: "SecureStorageSample",
|
masterKeyService: "SecureStorageSample",
|
||||||
masterKeyAccount: "AppMasterKey"
|
masterKeyAccount: "AppMasterKey",
|
||||||
|
pbkdf2Iterations: 20_000
|
||||||
)
|
)
|
||||||
await StorageRouter.shared.updateEncryptionConfiguration(config)
|
await StorageRouter.shared.updateEncryptionConfiguration(config)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user