To run the example project, clone the repo, and run pod install
from the Example directory first.
GLCKeychainWrapper is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GLCKeychainWrapper", :git => 'https://github.com/glucode/GLCKeychainWrapper.git', :branch => 'master'
[GLCKeychainWrapper setData:data forKey:@"username" accessControl:nil serviceName:@"com.glucode.GLCKeychainWrapper" completion:^(GLCKeychainWrapperResult result) {
if (result == GLCKeychainWrapperResultSuccess) {
NSLog(@"Successfully added item");
}
}];
SecAccessControlRef sac = [GLCKeychainWrapper touchIDCurrentSetWhenUnlockedThisDeviceOnlySAC];
[GLCKeychainWrapper setData:data forKey:@"username" accessControl:sac serviceName:@"com.glucode.GLCKeychainWrapper" completion:^(GLCKeychainWrapperResult result) {
if (result == GLCKeychainWrapperResultSuccess) {
NSLog(@"Successfully added item");
}
}];
[GLCKeychainWrapper stringForKey:@"username" serviceName:@"com.glucode.GLCKeychainWrapper" completion:^(GLCKeychainWrapperResult result, NSString * _Nullable value) {
NSLog(@"%@", value);
}];
Nico du Plessis, [email protected]
GLCKeychainWrapper is available under the MIT license. See the LICENSE file for more info.