evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.82k stars 345 forks source link

Viewing Keychain content in iOS simulator #134

Open crhee94 opened 4 years ago

crhee94 commented 4 years ago

I'm not sure if this is the right place to ask, but is it possible to see the Keychain file when using it with a simulator?

evgenyneu commented 4 years ago

Hi, sorry what do you mean by 'Keychain file'?

crhee94 commented 4 years ago

Hello! After storing some values into the Keychain, I want to see the content in the Keychain (which I believe is a db file?) by accessing the iOS simulator folders.

Edit: From what I've seen from other resources, they say to navigate to the devices folder and find the UUID of the simulator and I should find a "Keychain" folder, but I haven't been able to do so.

evgenyneu commented 4 years ago

I have no idea, sorry, I've never had a need to access a raw keychain file. I suspect it should be encrypted anyway (this is the whole point of Keychain), so what's the point? :)

crhee94 commented 4 years ago

https://stackoverflow.com/questions/41862997/ios-simulator-view-content-of-keychain This was something that I was hoping to do. Just checking that the helper functions are putting in the values into the keychain db when using the simulator.

Thank you for replying!

evgenyneu commented 4 years ago

Ok, fair enough, good luck with your research. :)

im-jersh commented 4 years ago

yes, you can poke around in the keychain database and see if your simulator run is in fact writing values to it https://stackoverflow.com/questions/41862997/ios-simulator-view-content-of-keychain

crhee94 commented 4 years ago

@oriyentel Hi Josh, I saw that post too! However, for some reason, I am not able to find the Keychain folder after navigating to the correct simulator folder... Do you happened to know what the issue is?