Store data securely in the Apple Keychain without learning how the Keychain works
open sourceApache-2.0free
Valet lets iOS, tvOS, watchOS and macOS apps store data securely in the Keychain without knowing how the Keychain works. Each Valet has an identifier that sandboxes its key-value pairs and an accessibility value that decides when they can be read. It can share secrets between apps through a keychain-sharing or App Groups entitlement, sync them across devices with iCloud Keychain, and keep them in the Secure Enclave behind Face ID, Touch ID or the device passcode, prompting every time or only once. It works from Swift and Objective-C, is thread-safe, and can migrate existing Keychain values. Square makes it.
Problems it solves
- store an API token securely in my iOS app
- keep a secret behind Face ID in a Swift app
- share credentials between my app and its extension through the Keychain
Features
- Keychain storage with per-Valet sandboxed identifiers
- accessibility settings for when secrets can be read
- sharing between apps through keychain or App Groups entitlements
- iCloud Keychain sync across devices
- Secure Enclave storage behind Face ID, Touch ID or the passcode
- Swift and Objective-C APIs, thread-safe
