How to generate the SHA-1 hash for Android Google development

Sometimes we need to generate a SHA 1 hash for Playstore publishing or what not. This information can be explained with a single command at the Google documentation website at “Authenticating Your Client”. You’d’ think using the key tool command would be simple enough.

keytool -exportcert -list -v \
-alias <your-key-name> -keystore <path-to-production-keystore>

Well it is, if you modify the command… This is how my successful process looked when I wanted a debug SHA1 hash key when using Android Studio for Google development in Windows 10.

  1. Make sure you have your key store file (debug.keystore) which can be found at C:\Users\\debug.keystore after a full Android Studio build.

Command to generate the debug SHA1 would be the one below.

keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore

You will then need to type a password. This password for debug Android Studio keystores are android. Type in android and there you have it! If you have problems starting the keystore program, you got it included with Android Studio so it should work, if not you have the keytool.exe program available at: C:\Program Files\Android\Android Studio\jre\bin

0 0 votes
Article rating
Notify of

Inline Feedbacks
View all comments