an Objective-C wrapper for accessing a single keychain item, the sample code was originally created by Apple but now available in modified & modernized (for ARC) forms from a variety of sources.
Questions tagged [keychainitemwrapper]
96 questions
1
vote
2 answers
KeychainItemWrapper class getting error in ios 9
i want save password and id in my app. i downloaded
[KeychainItemWrapper][1]
https://developer.apple.com/library/ios/samplecode/GenericKeychain/Introduction/Intro.html
and added KeychainItemWrapper.h/m in my project .when want to use class getting…
user4238267
1
vote
1 answer
How to save username & password for App in iOS?
I have an Username & password. I want to save it for an App. If app will deleted then username password will save for that app only, during reinstall the app it will work. If I instal the app in another devices then that user name password will be…

Soumya Ranjan
- 4,817
- 2
- 26
- 51
1
vote
0 answers
Keychain iOS 8 kSecAttrAccessible Crash
On iOS8 when I am trying to set the kSecAttrAccessible key before setting my object .I am facing an Assertion failure crash.
KeychainItemWrapper* keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"KeychainTest" accessGroup:nil];
[keychain…

IOSDevops
- 111
- 10
1
vote
0 answers
_OBJC_CLASS_$_KeychainItemWrapper Error when implementing Keychain for iOS
I have created a NSObject class KeychainItemWrapper.h / KeychainItemWrapper.m
KeychainItemWrapper.h
Code taken from:…

Harshit Gupta
- 251
- 1
- 3
- 10
1
vote
1 answer
Storing access token and refresh token in KeyChain
I would like to know how to effectively store the access token, refresh tokens and their expirations in the iOS keychain.
All the examples I have seen seem to store only one key-value combination. How do we store multiple key values for one…

cableload
- 4,215
- 5
- 36
- 62
1
vote
0 answers
How Long Does Keychain Data Last?
From what I've read, storing data in keychain will persist even after uninstalling your app. And since it depends on the provisioning profile used, we can be assured that the data stored is secured. However, I'm not sure how long the data will last…

cessmestreet
- 2,298
- 3
- 22
- 42
1
vote
1 answer
SecItemCopyMatching condition fails in Keychainitemwrapper class so unable to retrieve saved value in keychain
I have 2 applications. One is in appstore and the other one I am working currently. Using my first app I have saved a string in keychain and now using the second app I am trying to retrieve the same value. But every time the below condition fails.…

Dee
- 1,887
- 19
- 47
1
vote
2 answers
login and register using keychain
I heard that using keychain is better than using NSUserDefault.
The problem is that I have no idea how to use it.
I'm trying to make a login and register for the users with all different passwords and usernames.
Can someone please demonstrate or…

anika
- 73
- 7
1
vote
2 answers
Store an NSArray into a KeychainItemWrapper
I have to store an NSArray (which contains NSString and BOOL) into a KeychainItemWrapper to re use it in another ViewController, and to keep it in memory even if the app is closed.
I've already see at this question but it won't help me, because I…

ben77650
- 39
- 8
1
vote
1 answer
iOS storing data in keychain for use across devices
I am trying to write data to the iCloud Keychain and have it replicate across devices using the same Apple ID.
If I install an app and call the following code, write an entry, and tun read, I see the data being read back to log on the current…

NeilMortonNet
- 1,500
- 4
- 16
- 36
1
vote
2 answers
NSString from NSData crash when run in background fetch
I have this method that checks if we have a username and password stored in the keychain:
- (BOOL)hasLoginDetails
{
FLog
NSString *username = [self.keychainItem objectForKey:(__bridge id)kSecAttrAccount];
if (username == nil || [username…

Darren
- 10,182
- 20
- 95
- 162
1
vote
1 answer
Storing multiple username and passwords credential in keychain
I'm creating an application that requires the user to log in, I've read that it's a bad idea to use NSUserDefaults so I want to go with either storing the data inside a sqlite databaseor use keychain access. My app will show data based on what user…

Dwill
- 506
- 1
- 5
- 22
1
vote
1 answer
how to store nsdictionary inside keychainwrapper
I am using apple provided keychainwrapper sample code to store NSDictionary data which i get in my application authorization. I am receiving errSecParam (-50) as error code from SecItemAdd API.
Below is the code for keychainwrapper.m
#import…

Srivathsa
- 606
- 10
- 34
1
vote
2 answers
About ios KeychainItemWrapper store username/password other than object
I know save username/password use KeychainItemWrapper class method below, but I want an additional [ipTF text] in KeychainItemWrapper. How to do it?
KeychainItemWrapper *keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:@"Login"…

SimonKira
- 91
- 1
- 4
- 13
0
votes
1 answer
Can we store model object array into the keychain?
struct UserData {
var userName: String? = nil
var password: String? = nil
var phone: String? = nil
var email: String? = nil
var image: UIImage? = nil
var categoryName: String? = nil
}
I need to save and retrieve this…

islahulislam.ca
- 17
- 1
- 4