matthewpalmer / Locksmith

A powerful, protocol-oriented library for working with the keychain in Swift.
MIT License
2.92k stars 266 forks source link

accessing the iCloud keychain? #70

Open tanimislam opened 8 years ago

tanimislam commented 8 years ago

Hello, is there a way to distinguish, for example, the iCloud keychain easily using Locksmith?

matthewpalmer commented 8 years ago

Not at the moment, unfortunately. However I would love to see a PR for this if you could possibly do one :) The relevant keychain constant is kSecAttrSynchronizable, which is a boolean that indicates whether that keychain item can be synced across devices. These are the relevant header files, which specify a couple of important criteria for synced keychain items that can be found if you CMD + F for "IMPORTANT: Specifying the kSecAttrSynchronizable key has several caveats:"

Thanks very much for your help!

matthewpalmer commented 8 years ago

Also, this has existed in Locksmith in the past. Files from that commit might help/you might be able to use them :)

tanimislam commented 8 years ago

Thanks so much, this would help a lot to access and retrieve some encrypted data across my iOS devices.