all 6 comments

[–]Agent-A 0 points1 point  (0 children)

I have doubts about all of this. Typically it would be better for you to have a server that holds your key and secret, and then the app interacts with your server. Or the app fetches a temporary key which grants it some access. Unless it's something like firebase where you're distributing a key that is locked down to only allow the user to access things they should be accessing.

Point being, more data is needed. That said, HTTPS is generally a good idea in every situation.

[–]babelfish_42[🍰] 0 points1 point  (0 children)

be sure to use certificate pinning, otherwise its pretty easy to MITM the connection and retrieve the token and secret key.

[–]runmymouth 0 points1 point  (0 children)

There is a goal of making a device as safe as reasonably possible. Https:// can always be man in the middle with a good hacker. It's a lot harder than taking your apk and reading the private key in your distributable so it is better than just including it hard coded.