News for hackers. Stuff that matters.
Re:A Case of Stolen Source Code by danjoc on Wednesday May 17, 2017 @11:07PM (#14364565)
I asked the questions because I'd like to know the answer. I'm not arguing passive aggressively.

I looked at the source repo, and at a glance, it looks like the app stores the key pair on the iOS keychain. My guess is that means the key can be removed from the device if the user chooses to do so, or if the user give access to the keychain to another application. Perhaps I'm wrong about that. I keep hearing "The key never leaves the device" repeated, and I'd mainly like to know how that guarantee is made.

Re:A Case of Stolen Source Code by pfg on Thursday May 18, 2017 @08:04AM (#14366518)
The app uses kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly[1]. Quoting the relevant iOS documentation[2]:

> After the first unlock, the data remains accessible until the next restart. This is recommended for items that need to be accessed by background applications. Items with this attribute do not migrate to a new device. Thus, after restoring from a backup of a different device, these items will not be present.

[1]: https://github.com/kryptco/kryptonite-ios/blob/42c71d6381def...

[2]: https://developer.apple.com/reference/security/ksecattracces...