Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does iOS keychain storage persist when restoring an app to a new device?

My question is directly related to this one but is different: iOS: keychain on new devices or on restores.

The poster is curious if you store information in keychain storage, does it get backed up to iTunes and iCloud so that when you restore it to another device the data are persisted. A partial answer to the OP's own question was:

But now I read that the keychain is only restored if the backup is encrypted in iTunes (don't know about iCloud backups).

The accepted answer was:

You can transfer data using the iCloud, but this is NOT really secure! Save this data ENCRYPTED on your server and let the app read this data would be a solution. Btw. you shouldn't save sensible data unencrypted in the keychain. The keychain can be read really easy after jailbreak.

Is whether the backup is encrypted or not determined by the developer's access to encrypt the data in code or by how the iTunes or iCloud user handles their backups? The answer to this is very important to me because I am trying to set an initial launch date of an app that determines how long before they have to resubscribe with in-app subscriptions. This piece of information must be shared between old and new devices and also remain on a single device even if the app is removed for a time period.

like image 308
user1075722 Avatar asked Aug 28 '13 14:08

user1075722


People also ask

Is IOS keychain backed up?

When a user backs up iPhone data, the keychain data is backed up but the secrets in the keychain remain encrypted in the backup. The keychain password is not included in the backup.

Is Apple keychain stored in the cloud?

With iCloud Keychain, you can keep your passwords and other secure information updated across your devices. iCloud Keychain remembers things, so that you don't have to. It auto-fills your information—like your Safari usernames and passwords, credit cards, and Wi-Fi passwords on any device that you approve.

How do I transfer my Apple keychain to my new phone?

Go to Settings/iCloud and turn on Keychain. On your Mac go to System Preferences->iCloud and turn it on there also. Do the same on your old phone. This should sync your passwords across all devices.

Does iPhone backup save app passwords?

For security reasons, by default, an iTunes backup will not include saved passwords, Wi-Fi settings, website history, or Health data. You can save information like passwords and website history in an iTunes backup if you encrypt it, which is an option that Apple offers.


1 Answers

enter image description hereThe following text was from Apple's doc:

Keychain (this includes email account passwords, Wi-Fi passwords, and passwords you enter into websites and some other applications. If you encrypt the backup with iOS 4 and later, you can transfer the keychain information to the new device. With an unencrypted backup, you can restore the keychain only to the same iOS device. If you are restoring to a new device with an unencrypted backup, you will need to enter these passwords again.)

like image 51
user523234 Avatar answered Oct 17 '22 03:10

user523234