Last active
April 20, 2017 04:22
-
-
Save trevren11/b1281c5a4faa19afdf3d11f08beb668b to your computer and use it in GitHub Desktop.
Make a SHA-1 key for Android in Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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