Sskeychain This library is a package for the iOS security framework and is extremely easy to use.
Git:https://github.com/samsoffes/sskeychain
Use the code here:
-(void) viewdidload { [super viewdidload]; Additional setup after loading the view, typically from a nib. [Sskeychain setpassword:@ "123" forservice:@ "Com.service.service" account:@ "account"]; NSString *password = [Sskeychain passwordforservice:@ "Com.service.service" account:@ "account"]; NSLog (@ "password =%@", password); Getting Accounts Nsarray *accounts = [Sskeychain allaccounts]; NSLog (@ "accounts =%@", accounts); accounts = [Sskeychain accountsforservice:@ "Com.service.service"]; NSLog (@ "accounts =%@", accounts); Deleting passwords [sskeychain deletepasswordforservice:@ "Com.service.service" account:@ "account"]; Password = [Sskeychain passwordforservice:@ "Com.service.service" account:@ "account"]; NSLog (@ "password =%@", password); }
code Download: http://download.csdn.net/detail/qqmcy/8520719
IOS Lightweight security third-party library Sskeychain