How to hide translator API key in android

Евгений Асеев

I use yandex and google translate in my application and of course have unique API key, but everyone can steal it by decompiling my application. How can I hide it?

hurricane

If i were you i will rent a server (maybe amazon) and create a database and insert our api key with simple encrypted string (hash etc.).

ID - Name - androidKey - key

1 - GoogleAPI - AJKBSASHUA9 - yourAPIKey
2 - YandexAPI - 5A6S5D6A53C - yourAPIKey
.
.
.

Then you can create a service which is run by your android packageName;

http://example.com/API/getAPIKey/
?packageName="yourPackageName"
&androidKey="AJKBSASHUA9"

And if you use POST method it is safe for you.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to hide api key in javascript?

How to use Microsoft Translator API in Java or Android using Azure

Offline language translator API for Android?

How to hide API Keys in Android

How to hide the API key in my Electron application?

How to hide my API Key in a POST request?

How to create a translator with dictionaries using Composition API

How to hide API keys in Android application?

How can I hide my API key stored within JavaScript?

How to use Netlify Lambda Functions to hide API key

How do I create a .env file for a project to hide API key

How to hide API key when developing pure html/ js website

How to hide google map api key in django before pushing it on github?

How do I hide API key in create-react-app?

How to Hide an API Key in Client-Side Javascript

How can I hide an API key in a GitHub public repo?

How do i hide API key when it must be wrapped in apostrophe?

How can I hide an external API key in a Wordpress PHP file?

hide api key for a Github page

Laravel API resource hide key

How to Enable DNN translation through Microsoft Translator API

How to authenticate a daemon to access MS Custom Translator API

How to get alternative translations using Microsoft Translator API GetTranslations

How to implement the google translator api in the dialogflow line editor

Different results with Microsoft Translator API / Web Translator

Google Translator Api in Cordova

Accessing Google Translator API

How to keep secure the fabric api key in android?

Do I need to hide API key when using google maps js API? If so, how?