Latest 1.0.0
Homepage https://github.com/danielalves/NitroKeychain
License MIT
Platforms ios 6.0, requires ARC
Frameworks Security
Authors ,

Version
Platform

NitroKeychain is a thin, yet powerful, abstraction layer on top of iOS keychain that provides commonly needed features. NitroKeychain is also thread safe.

There are 3 operations: save, load and delete, as you can see below:

Saving

[TNTKeychain save: @"com.myapp.service.id" 
             data: @"my-ultra-secret-token"];

// Or, if you want to make this item available across apps, specify 
// an access group:
[TNTKeychain save: @"com.myapp.service.id" 
             data: @"my-ultra-secret-token"
      accessGroup: @"super-company"];
  • All keychain items are stored using the kSecClassGenericPassword Keychain Item class.
  • data can be any value compatible with NSKeyedArchiver/NSKeyedUnarchiver.
  • If there is already some data associated with a keychain item ID, it will be updated.

Loading

NSString *token = [TNTKeychain load: @"com.myapp.service.id"];
NSLog( @"%@", token );
  • load will return nil if no keychain item is found with such id.

Deleting

[TNTKeychain delete: @"com.myapp.service.id"];
  • delete does nothing if no keychain item is found with such id.

Simple as that :+1:

Requirements

iOS 6.0 or higher, ARC only

Installation

NitroKeychain is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NitroKeychain'

Authors

License

NitroKeychain is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NitroKeychain",
    "version": "1.0.0",
    "summary": "Apple's keychain without pain.",
    "description": "                       NitroKeychain is a thin, yet powerful, abstraction layer on top of iOS keychain that n                       provides commonly needed features.n",
    "homepage": "https://github.com/danielalves/NitroKeychain",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": [
        "Daniel L. Alves",
        "Gustavo Barbosa"
    ],
    "social_media_url": "http://twitter.com/gustavocsb",
    "source": {
        "git": "https://github.com/danielalves/NitroKeychain.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "NitroKeychain/NitroKeychain",
    "requires_arc": true,
    "frameworks": "Security"
}

Pin It on Pinterest

Share This