TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by hyyy.
HYKeychainHelper is a simple tool for accessing accounts, getting passwords, setting passwords, and deleting passwords using the system Keychain on iOS.
Download and drop /HYKeychainHelper
folder in your project.
The usage of HYKeychainHelper is similar to SSKeychain, so you can easily get started. I specifically provide a simple Demo in order to test HYKeychainHelper function. You can use your bundle ID for testing. Note the bundle ID need Keychain support. if you have question about HYKeychainHelper, you can submit an issue. I will reply to the first time.
It’s very simple to use HYKeychainHelper, all external methods are provided in a class method. details as follows:
/// query account's password
HYKeychainHelper.password(service: "your_service_name", account: "your_account_name")
/// add or update an account
HYKeychainHelper.set(password: "your_password", service: "your_service_name", account: "your_account_name")
/// delete an account
HYKeychainHelper.deletePassword(service: "your_service_name", account: "your_account_name")
/// all accounts
HYKeychainHelper.allAccounts(forService: "your_service_name")
For more usage scenarios, please refer to
HYKeychainHelper
for details.
HYKeychainHelper
is developed with Swift 3, so your Swift version must be Swift 3.
HYKeychainHelper is available under the MIT license. See the LICENSE file for more info.