iOS:获取iPhone密码以生成加密对称密钥 [英] iOS: Get iPhone passcode to generate symmetric keys for encryption

查看:109
本文介绍了iOS:获取iPhone密码以生成加密对称密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种iOS应用程序,该应用程序分发给所有被锁定的密码。有没有办法获得设备密码(或其某种形式)动态生成对称密钥(例如使用PBKDF2)加密/解密数据?

I'm developing an iOS app that is distributed to devices that are all locked with a passcode. Is there a way to get the device passcode (or some form of it) to dynamically generate symmetric keys (for example with PBKDF2) to encrypt/decrypt data?

推荐答案

不。没有API可以确定是否有设备密码设置,或者是否设置了密码。

No. There is no API to determine if there is a device passcode set or to get the passcode if one is set.

您将需要使用其他值生成密钥。一个选择是要求用户输入特定的应用密码。

You will need to generate the keys using some other value. One option would be to require the user to enter an app specific passcode.

这篇关于iOS:获取iPhone密码以生成加密对称密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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