Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hirenrojasara/060672b62df673c092b6f1d82345bd53 to your computer and use it in GitHub Desktop.
Save hirenrojasara/060672b62df673c092b6f1d82345bd53 to your computer and use it in GitHub Desktop.
Android Automatic SMS Verification with the SMS Retriever API - HASH Generation on MAC
keytool -exportcert -alias [KEY_STORE_ALIAS] -keystore [KEY_STORE_FILE_PATH] -storepass [KEY_STORE_PASSWORD]
| xxd -p
| tr -d "[:space:]"
| echo -n [PACKAGE_NAME] `cat`
| openssl dgst -sha256
| cut -d' ' -f2
| tr -d "[:space:]-"
| xxd -r -p
| base64
| cut -c1-11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment