LBKeychain 1.0.0

LBKeychain 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by Lucian Boboc.



A keychain wrapper to help you save username and password very easy.

How to use

// to save a username and password:
[LBKeychain saveUsernameValueInKeychain: self.emailTextField.text andPasswordValue: self.passwordTextField.text];

// to autocomplete a username and password:
[LBKeychain autocompleteValuesForUsernameField: self.emailTextField andPasswordField: self.passwordTextField];
  • to save a value in keychain use saveValueInKeychain:forIdentifier: method.
    • to delete a value in kechain use deleteItemFromKeychainForIdentifier: method.
    • to search a value in keychain use searchValueForIdentifierInKeychain: method.

If you want to save only a username and a password

  • to save a username and password use saveUsernameValueInKeychain:andPasswordValue: method. This method uses the kLBKeychainUsername value for the user, but that can be changed in LBkeychain.m
  • to delete an already saved username and password use deleteUsernameAndPasswordItemsFromKeychain method.
  • to search for an already saved username using the saveUsernameValueInKeychain:andPasswordValue: method you should use searchUsernameValueInKeychain method.
  • to autocomplete a username and password text fields use autocompleteValuesForUsernameField:andPasswordField: method.

LICENSE

This content is released under the MIT License https://github.com/lucianboboc/LBKeychain/blob/master/LICENSE.md

Enjoy!