Generate SHA-1 Key In Flutter For Firebase Console & Google APIs

Lakshydeep Vikram
2 min readJul 15, 2021

In most cases, there is requirement of SHA-1 key like in firebase and signing processes and in google apis. So the question arise what’s exactly is this and how do we generate this?
Here we go

What is SHA-1 key?

SHA-1 (Secure Hash Algorithm) 1 fingerprint is a unique key generated for your PC that can be used for signing. Its mainly used for submitting for using the Google APIs(In case of Android).It is also requires in firebase also. SHA1 is the unique signature that depends upon the Keystore and Debug Keystore is unique for each system and it is automatically maintained by the Android SDK.

How do we get SHA-1 key?

First you need to find the location of debug.keystore file.
For macOS

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

For Windows
Iinside Android\Sdk\.android\ folder in your pc and then you need to copy that location. In my pc, the location is:

C:\Users\Windows\AppData\Local\Android\Sdk\.android\debug.keystore

After you find the location of debug.keystore file then you need to go to the terminal and use that copied location in the below code for getting the SHA-1 Key.

keytool -list -v -keystore…

--

--

Lakshydeep Vikram
Lakshydeep Vikram

Written by Lakshydeep Vikram

Software Developer | Google Dev Library Author | Flutter Enthusiast

Responses (1)