Pick the fix
The app calls a paid AI API with a secret key. Where should the key live?
Hint 1 of 1
Can a key in the app ever be secret?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A On your backend, which the app calls and which adds the key
Correct. The key never ships, and you control access and quotas.
Why not the others?
- B In the binary, obfuscated. Obfuscated strings can still be extracted at runtime.
- C In the Keychain, written on first launch. The key must ship in the app to be written, so it can be extracted.
- D In Info.plist. Anyone can read it from the app bundle.