ylechelle / OpenUDID

[OpenUDID IS NOW DEPRECATED] Open source initiative for a universal and persistent UDID solution for iOS
OpenUDID.org
2.09k stars 435 forks source link

Use Keychain For Persistence #31

Open thanatos0801 opened 12 years ago

thanatos0801 commented 12 years ago

In addition to normal methods, use OS keychain as a primary persistence mechanism. Keychain entries are stored between installations, making them a good option in addition to Pasteboards.

thanatos0801 commented 12 years ago

Sorry this took so long. Got very busy. Built and tested with latest merged master code and prefixed the keychain class, as requested.

paiv commented 12 years ago

Be aware of this case, as commented on SO:

keychain can be restored to other devices if the user encrypts their backup. This can result in a situation where multiple devices share the same UUID. To avoid this, set the accessibility of your keychain item to kSecAttrAccessibleAlwaysThisDeviceOnly.