realm数据库密码保存到keychain中产生的问题

      用户换手机,用iCloud或iTunes,将数据同步到了新手机。realm数据库同步了过来。
但是,保存在keychain中的realm密码,按苹果的说法,keychain在备份时,虽然会被
备份,但是只能恢复到原设备上。结果就导致数据库的密码没有同步过来。
     这样有密码的realm的数据库就没有办法打开了。

https://forums.developer.apple.com/thread/45940


While the user’s keychain database is backed up to iCloud, it remains protected by a UID-tangled key. This allows the keychain to be restored only to the same device from which it originated, and it means no one else, including Apple, can read the user’s keychain items.
PDF iOS Security - Apple
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值