Hide your API Keys in Android

<p>You are using a version control system and your project uses some services that require API keys. Everything is all good and well when it is on your local machine, but you obviously don&rsquo;t want to share these API keys with the world.</p> <blockquote> <p>How can we still preserve our API keys within our application, but also hide them when we upload our code to our repository?</p> </blockquote> <p>We want to be able to still use our API keys in a normal fashion inside our applications, but also not expose them.</p> <p>That&rsquo;s where&nbsp;<strong><em>secrets&nbsp;</em></strong>come in. Similar to those that you keep only to yourself, but in a developer kind of way.</p> <p>Secrets can represent crucial information that is required by your application to operate, but should not be visible to anyone working outside the project. These can be API keys or authorization tokens, but in essence it is any piece of authorization information that should only be used by you and you alone. Similar to how you don&rsquo;t want to share your password to a website with anyone else.</p> <p><a href="https://proandroiddev.com/hide-your-api-keys-in-android-d4c52446d0bc"><strong>Visit Now</strong></a></p>
Tags: API Keys