How to see the keychain for iphone simulator

六眼飞鱼酱① 提交于 2020-01-11 17:17:23

问题


I have developed an iPhone application in which I am encrypting and decrypting data using public and private key. I want to see this keys in the Keychain. I got the keychain entry for mac applications under Applications/utilities, but what is the location for iPhone simulator Keychain and Keychain for iPhone OS itself on device.


回答1:


The iPhone simulator keychain is stored in ~/Library/Application Support/iPhone Simulator/<Version Number>/Library/Keychains/ and is in sqlite3 DB format. The location of the file on the device itself is unimportant, as you can only access it through the keychain API (but a path with a few similarities to the simulator path wouldn't surprise anyone).




回答2:


You must acces the keychain through the keychain API, just like explained in this example.



来源:https://stackoverflow.com/questions/1636506/how-to-see-the-keychain-for-iphone-simulator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!