This package is a wrapper over Keychain API to make it easier to use.
If you want to store your user's secrets, you have to put these secrets in Keychain encrypted database. But Keychain API is not straightforward to use! So you can use this wrapper over this API and get rid of the complexity of Keychain.
It supports two types of Credential: InternetCredential and GenericCredential. GenericCredential: use when you want to store just account, secret, and optional additional info. You can fetch this Credential by account and additionalInfo later. InternetCredential: use when you want to store more information about server and port rather than generic credentials. The secret can be every encodable to utf8 sensitive data like passwords or API tokens.
- Xcode 11.x
- Swift 5.x
KeychainPackage doesn't contain any external dependencies. The installation is available just by Swift Package Manager. Adding Package Dependencies to Your App