Answer the question
In order to leave comments, you need to log in
Where is the best place to store api keys in an ios application?
Good afternoon.
Tell me where in the ios application it is best to store keys from a third-party API (clientid, clientssecret) and other secret credentials. I read that such data cannot be stored in the config file, because the config can be downloaded by installing the application and peeking.
There is also a preprocessor macro. Is it worth putting them in there?
Maybe some other options.
Thank you.
Answer the question
In order to leave comments, you need to log in
Probably the safest way is to store such data in keyChain.
Here is how to do it:
https://www.raywenderlich.com/6475/basic-security-...
define (#define) into the model or model helper. If you are using MVC correctly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question