Skip to content

Instantly share code, notes, and snippets.

@litefeel
Created November 26, 2015 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save litefeel/2d7a09693ec3dc200623 to your computer and use it in GitHub Desktop.
Save litefeel/2d7a09693ec3dc200623 to your computer and use it in GitHub Desktop.
get key hash from keystore file
# get key hash from keystore file
# first
SET KEY_TOOL=%JAVA_HOME%/bin/keytool.exe
SET OPEN_SSL=%openssl%
SET ALIAS=androiddebugkey
SET KEY_STORE="C:/Users/myuser/.android/debug.keystore"
#keytool -exportcert -alias androiddebugkey -keystore "C:/Users/xiaoqing.zhang/.android/debug.keystore" | openssl sha1 -binary |openssl base64
%KEY_TOOL% -exportcert -alias %ALIAS% -keystore %KEY_STORE% | %OPEN_SSL% sha1 -binary | %OPEN_SSL% base64
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment