UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

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      

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

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.