Skip to content

Instantly share code, notes, and snippets.

@trevren11
Last active April 20, 2017 04:22
Show Gist options
  • Save trevren11/b1281c5a4faa19afdf3d11f08beb668b to your computer and use it in GitHub Desktop.
Save trevren11/b1281c5a4faa19afdf3d11f08beb668b to your computer and use it in GitHub Desktop.
Make a SHA-1 key for Android in Windows
# Location of the bin where you need to execute the tool
cd C:\Program Files\Java\jdk1.8.0_91\bin
# This makes a file auth
keytool -genkey -alias authTest -keystore C:\Users\trevr_000\.keystore\auth
# This shows the keys needed to authenticate with Firebase
keytool -exportcert -list -v -alias authTest -keystore C:\Users\trevr_000\.keystore\auth
# Make a debug key
keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
# Default password is android
Get hash
keytool -exportcert -alias nameOfKey -keystore ../../code/AndroidStudioKeys | openssl sha1 -binary | openssl base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment