Skip to content

Manage your username and password for iOS and OS X platform. Highly encryption and won't be lose even you uninstall your app.

License

Notifications You must be signed in to change notification settings

DeveloperLx/LxKeychain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LxKeychain

Manage your username and password for iOS and OS X platform. Highly encryption and won't be lose even you uninstall your app. Installation

You only need drag LxKeychain.h and LxKeychain.m to your project. Podfile

pod 'LxKeychain', '~> 1.0.0'

Support

Minimum support iOS version: iOS 6.0 Usage

NSLog(@"savedUsernameArray = %@", [LxKeychain savedUsernameArray]); //

[LxKeychain insertOrUpdatePairsOfUsername:@"username1" password:@"password1"];
[LxKeychain insertOrUpdatePairsOfUsername:@"username2" password:@"password2"];
[LxKeychain insertOrUpdatePairsOfUsername:@"username3" password:@"password3"];
[LxKeychain insertOrUpdatePairsOfUsername:@"username1" password:@"password4"];
[LxKeychain cleanPasswordForUsername:@"username2"];
[LxKeychain deletePairsByUsername:@"username3"];
NSLog(@"savedUsernameArray = %@", [LxKeychain savedUsernameArray]); //
NSLog(@"username1 password: %@", [LxKeychain passwordForUsername:@"username1"]); //
NSLog(@"username1's password %@ password1", [LxKeychain password:@"password1" isCorrectToUsername:@"username1"]?@"is":@"is not"); //
NSLog(@"username1's password %@ password4", [LxKeychain password:@"password4" isCorrectToUsername:@"username1"]?@"is":@"is not"); //
NSLog(@"lastestUpdatedUsername = %@", [LxKeychain lastestUpdatedUsername]);    //

static NSString * const YourSaveKey = @"Your save key!";
NSLog(@"Your saved string: %@", [LxKeychain fetchDataOfService:YourSaveKey]);  //
[LxKeychain saveData:@"Here is What you want to save forever!" forService:YourSaveKey];

NSLog(@"Your LxKeychain device unique identifer is %@", [LxKeychain deviceUniqueIdentifer]);   //
NSLog(@"Your keychain access group is %@", [LxKeychain accessGroupName]);   //

// You can try to run once, then uninstall your app, then build and run it again. You will see shocking phenomena!

License

LxKeychain is available under the Apache License 2.0. See the LICENSE file for more info.

About

Manage your username and password for iOS and OS X platform. Highly encryption and won't be lose even you uninstall your app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published