HYKeychainHelper is an iOS tool for Keychain operations. You can easily obtain an account, obtain a password, add a password, and delete a password.

requirements

  • Swift 3
  • IOS 10.0 +
  • Xcode 8+

Manual installation

Download the project file and drag the /HYKeychainHelper folder into your project.

usage

HYKeychainHelper is simple to use; all external methods are provided as class methods. Details are 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")Copy the code

For more usage, see HYKeychainHelper for more details.

communication

  • If you have a problem or need help, you can create an issue and I will answer it for you in the first time.
  • If you need some optimization, create an issue discussion;
  • If you want to submit a contribution, publish a pull Request.