E
E
Evgeny Svirsky2016-03-29 16:55:11
iOS
Evgeny Svirsky, 2016-03-29 16:55:11

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

3 answer(s)
E
Evgeny Svirsky, 2016-04-13
@e_svirsky

Probably the safest way is to store such data in keyChain.
Here is how to do it:
https://www.raywenderlich.com/6475/basic-security-...

P
Petrushka, 2016-03-29
@petruska

I usually throw in the class of constants

G
German Polyansky, 2016-04-02
@f0r3s1

define (#define) into the model or model helper. If you are using MVC correctly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question