将应用程序还原到新设备时,iOS钥匙串存储是否仍然存在? [英] Does iOS keychain storage persist when restoring an app to a new device?

查看:1138
本文介绍了将应用程序还原到新设备时,iOS钥匙串存储是否仍然存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题与此问题直接相关但不同::



钥匙串(包括电子邮件帐户密码,Wi-Fi密码,您输入网站和其他一些应用程序的密码。如果您使用iOS 4及更高版本加密备份,您可以将钥匙串信息传输到新设备。使用未加密的备份,您只能将钥匙串恢复到同一iOS设备。如果要使用未加密的备份还原到新设备,则需要再次输入这些密码。)


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.

解决方案

The 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.)

这篇关于将应用程序还原到新设备时,iOS钥匙串存储是否仍然存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆