I am trying to create an API for Android clients similar to Google and Facebook
Both Google and Facebook have this process in their API's of generating some kind of hash from your android keystore. They say that only requests made from your packagename
(eg. com.example.myapp)
and that keystore's hash will be allowed and identified in their systems as you.
Google's method:
keytool -exportcert -alias androiddebugkey -keystore <path-to-debug-or-production-keystore> -list -v
and
Facebook:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
How would I implement my API to guarantee secure identifiable requests from the Android client to my backend.
thanks!