TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

How to hide my API Key in my code?

Forums > Swift

Hi HWS community,

My app is ready to ship, but now I don't know how to remove or hide my API key. I don't have a server where I can store it and access. What is the easy and safe way to do that.

Thanks a lot, Renato.

3      

@Renato wants to play hide and seek with a valuable bauble.

I don't know how to remove or hide my API key

Not sure which site you're providing a key for. Hope you're not charged a premium for excessive use!

This topic was discussed some time ago. One conclusion is storing your personal, private API key in an app is a Bad Idea™.

Here's a rundown of the discussion.

See -> Hiding your API Key

3      

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.