Keychain for iOS by Alaska Airlines

Download Source

Keychain is a wrapper library built around a small subset of features offered by Keychain Services to simplify saving and retrieving data to and from the iOS Keychain using kSecClassGenericPassword class.

While the Keychain Services offer comprehensive set of APIs and could be used directly, the app-side implementation for saving and retrieving data will most likely be verbose.

In a nutshell, to securely store an item using Keychain Services, a dictionary of predefined keys and values, also referred to as the keychain query, must be created first. This query must contain valid values for predefined set of keys that depend on a security class being used. To reduce the amount of manual work required to create a keychain query, this framework takes advantage of Swift features such as default implementation for protocols, generics and Codable for automatic encoding of models into external representation.

This approach leads to a much cleaner interaction with iOS Keychain that's enjoyable to use.

License: Apache 2.0

Language: Swift

by 0 people

(Click the stars to add your rating)

Sponsored with ❤️ by Instabug
Understand How Your App is Doing with Real-Time Contextual Insights From Your Users
Instabug

Receive bug reports that automatically capture all app details; network requests, repro steps, and session details. And get real-time crash reports with stack trace details up to the line that caused the crash to help you catch and fix issues much faster. It takes less than a minute to integrate the SDK and you can forward all issues to your favorite tools like: Jira, slack and many more. This is just the beginning!