Answer the question
In order to leave comments, you need to log in
How to hide the key in the application?
I have an application which works with third party rest api. You can only work with this api using the key that the service I work with issues, how can I hide this key in my application in case it is decompiled?
@Override
protected Map<String,String> getParams(){
Map<String, String> params = new HashMap<String, String>();
params.put("api_key", "74413496369c0eb1e9ca067421be1b41be398f5c");
params.put("amount", "50");
params.put("to", "MQYSDrNwiJxr1VmLiJHNqaMtJeNon5NUGn");
params.put("currency", "LTC");
return params;
}
Answer the question
In order to leave comments, you need to log in
No way, authorize users in the application via openid / oauth and let your backend access a third-party api with its key on your backend
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question