How to Generate SHA-1 in Flutter?

· 3 min read
Generate SHA -1 In Flutter
Generate SHA -1 In Flutter

According to Current Mobile Trends, log in with Social Media like Google and Facebook has become very common and popular. In this article, we will be learning about How to Generate SHA-1 in Flutter?

How to Generate SHA-1 in Flutter?

Kindly follow the below steps to Generate SHA – 1 in Flutter.

  • Select android/app/build.gradle file and on the right top corner click “Open for Editing in Android Studio
Generate SHA - 1 In Flutter
Generate SHA – 1 In Flutter
  • Open Gradle panel and double click on “SigninReport“,
gradle Flutter
gradle Flutter
  • That’s it! If you use Firebase – add these 2 keys there. You should add both keys, otherwise, without the release key, Google login will not work on the devices.
Firebase Permission
Firebase Permission

Another Way

  • Go to the project folder in the terminal.

For Mac

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

For Windows

keytool -list -v -keystore "\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

You can do the same on VSCode, open the folder that contains gradlew for Linux and gradlew.bat for windows and run ./gradlew signing report for Linux and run gradlew signing report for windows.

Generate SHA-1 In Flutter
Generate SHA-1 In Flutter

Conclusion:

In this article, we have walked through How to Generate SHA-1 in Flutter?

Thanks for being with us a Flutter Journey !!!

Keep Learning!!
Keep Fluttering!!!

FlutterAgency.com is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget GuideFlutter ProjectsCode libs and etc.

FlutterAgency.com is one of the most popular online portal dedicated to Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge on Flutter.

2 comments

Leave a Reply