Latest 0.1.0
License MIT
Platforms ios 7.0, requires ARC

CI Status


To run the example project, clone the repo, and run pod install from the Example directory first.

LNPasswordManager provides some helper classes to save and verify passwords

First, reference the singleton class:

    LNPasswordManager *manager = [LNPasswordManager defaultKeychain];

The following are optional implementations

    [manager setICloudSyncEnabled:YES]; // Enables syncing of the keychain with iCloud
    [manager setServiceName:@"com.limeninja.appName"]; // Sets the service name

To save and verify passwords use:

    [manager savePassword:passwordField.text forUsername:usernameField.text];

    if ([manager verifyPassword:passwordField.text forUsername:usernameField.text]) {
        NSLog(@"Password Correct");
    } else {
        NSLog(@"Password Incorrect");

Additional Usage

You can use LNPasswordManager to store other key/value pairs in the keychain using the following methods

    [manager getKeychainValueForKey:@"Key"]; // Returns NSData
    [manager [email protected]"Value" forKey:@"Key"]; // Returns a BOOL
    [manager updateKeychainValue:@"Value" forKey:@"Key"]; // Returns a BOOL
    [manager deleteKeychainValue:@"Key"];


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

pod "LNPasswordManager"


LimeNinja, [email protected]


LNPasswordManager was Created by LimeNinja and is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "LNPasswordManager",
    "version": "0.1.0",
    "summary": "A simple keychain password manager. Enables syncing with iCloud",
    "description": "                       LNPasswordManager can be used to simply manage passwordsn                       and key/value pairs in the iOS keychain.n                       n                       It contains some helper methods for verifying passwords and can alson                       be synced to iCloud keychain by configurable options.n",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "NilSkilz": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "7.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/*",
    "resource_bundles": {
        "LNPasswordManager": [

Pin It on Pinterest

Share This