Latest 0.1.0
Homepage https://github.com/NilSkilz/LNPasswordManager
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

Usage

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"];

Installation

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

pod "LNPasswordManager"

Author

LimeNinja, [email protected]

License

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": "https://github.com/NilSkilz/LNPasswordManager",
    "license": "MIT",
    "authors": {
        "NilSkilz": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NilSkilz/LNPasswordManager.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/*",
    "resource_bundles": {
        "LNPasswordManager": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This