Reputation: 1988
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?
Upvotes: 0
Views: 183
Reputation: 318794
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.
Upvotes: 1