且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS:获取iPhone密码以生成加密对称密钥

更新时间:2023-02-04 09:53:22

不。没有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.