sskeychain

SSKeychain: Accounts not stored in iCloud?

两盒软妹~` 提交于 2019-12-10 10:06:32
问题 I'm using sskeychain (https://github.com/soffes/sskeychain) to store my accounts and passwords in the IOS keychain. I assume, that if I store an account, it should be available on my other device. But it doesn't appear there. I read my accounts with this code: NSArray *arr=[SSKeychain accountsForService:@"Login"]; for (NSString *s in arr) { NSLog(@"Account: %@",s); } and get this (only shown one entry, the others are similar): Account: { acct = "friXXXXXter@XXXX.com"; agrp = "3B4384Z34A.de

How to save CFUUID in keychain

橙三吉。 提交于 2019-12-06 02:26:04
问题 I'm developing an iPhone application. The application access some web service that aboug other things should recognize the device ID. Since UDID is deprecated, I need to call CFUUIDCreate to generate my own UUID for this purpose. The ID is security-sensitive: all my network communication is encrypted, and I don't want nobody but my certificate-authenticated server to know that UUID. Besides, I want this identifier to survive re-install. Using the keychain to store that UUID seems like an

SSKeychain not retain data

放肆的年华 提交于 2019-12-02 04:22:23
问题 I am using SSKeychain for storing UUID of device. However, sometimes SSKeychain not retains UUID, so my app has to recreate new UUID. Can someone tell me some reasons why SSKeychain not retains data. Thanks in advance! sorry for my english :) 回答1: Try this in your appdelegates for Objective C NSString *uniqueId = [SSKeychain passwordForService:@"YOUR_PROJECT_IDENTIFIER" account:@"unique_id"]; if ([uniqueId length]==0) { uniqueId = [AppDelegate uuid]; [SSKeychain setPassword:uniqueId

SSKeychain not retain data

不问归期 提交于 2019-12-02 00:33:57
I am using SSKeychain for storing UUID of device. However, sometimes SSKeychain not retains UUID, so my app has to recreate new UUID. Can someone tell me some reasons why SSKeychain not retains data. Thanks in advance! sorry for my english :) Try this in your appdelegates for Objective C NSString *uniqueId = [SSKeychain passwordForService:@"YOUR_PROJECT_IDENTIFIER" account:@"unique_id"]; if ([uniqueId length]==0) { uniqueId = [AppDelegate uuid]; [SSKeychain setPassword:uniqueId forService:@"Store credentials in Keychain Identifier" account:@"unique_id"]; } [[NSUserDefaults standardUserDefaults

How to choose account and service values for SSKeychain

China☆狼群 提交于 2019-11-30 06:32:34
问题 I'm thinking of using SSKeychain for storing a password in an iOS app, but I'm not sure if I need some specific value for the account and service, or if it will be OK with just arbitrary ones. Is there a common practice? 回答1: The Service should be a unique string for your App, possibly use the iOS Bundle Identifier as the Service or the name/URL of your Application or Web App or whatever you are setting the Password for. This should ideally be constant throughout your Application but there is

How to choose account and service values for SSKeychain

不羁的心 提交于 2019-11-28 19:50:48
I'm thinking of using SSKeychain for storing a password in an iOS app, but I'm not sure if I need some specific value for the account and service, or if it will be OK with just arbitrary ones. Is there a common practice? The Service should be a unique string for your App, possibly use the iOS Bundle Identifier as the Service or the name/URL of your Application or Web App or whatever you are setting the Password for. This should ideally be constant throughout your Application but there is no specific preference. I personally prefer to set it to the Web Service URL but that is my preference. The

SecItemAdd and SecItemCopyMatching returns error code -34018 (errSecMissingEntitlement)

↘锁芯ラ 提交于 2019-11-26 17:01:47
Sometimes when I run an application on device from Xcode I would try to access the keychain but fail due to error -34018. This doesn't match any of the documented keychain error codes and can't be consistently reproduced. (happens maybe 30% of the time, and it's not clear to me why it happens). What makes debugging this problem very difficult is the total lack of documentation. Any idea what causes this and how to fix it? I'm using Xcode 5 and running iOS 7.0.4 on device. There is an open issue about this here: https://github.com/soffes/sskeychain/issues/52 EDIT: Adding keychain access code

SecItemAdd and SecItemCopyMatching returns error code -34018 (errSecMissingEntitlement)

空扰寡人 提交于 2019-11-26 04:59:27
问题 Sometimes when I run an application on device from Xcode I would try to access the keychain but fail due to error -34018. This doesn\'t match any of the documented keychain error codes and can\'t be consistently reproduced. (happens maybe 30% of the time, and it\'s not clear to me why it happens). What makes debugging this problem very difficult is the total lack of documentation. Any idea what causes this and how to fix it? I\'m using Xcode 5 and running iOS 7.0.4 on device. There is an open