Generate SHA1 MD5 and SHA-256 certificate fingerprints or keys easily

SaveSavedRemoved 0
Deal Score+3
Deal Score+3

What is SHA1?

As per Wikipedia: In cryptography, SHA-1 is a cryptographic hash function which takes an input and produces a 160-bit hash value known as a message digest – typically rendered as a hexadecimal number, 40 digits long. It was designed by the United States National Security Agency and is a U.S. Federal Information Processing Standard. The SHA1 certificate fingerprint is mostly used when we started developing Google and Firebase API related features. For example, before configuring FCM (Firebase Cloud Messaging), Google Maps, Google Sign In, etc.

How to get SHA1 fingerprint:

Mostly we have to create two SHA1 keys for each application. One should be for debug purposes and the other one is for release purpose. So let’s discuss how to get both in command prompt by using some commands. Debug mode:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Release mode:
keytool -list -v -keystore {keystore_name_with_path} -alias {alias_name}

Get SHA1 fingerprint from Android Studio:

It’s the easiest and quickest way to get the SHA1 fingerprint for only debug purposes.
Open Android Studio and click on the Gradle menu (on the right side with one elephant symbol). (See IMG1). Then expand the app and make sure one tab is there called Tasks. Now expand task and click on and then double click on signing the report . Now you have done it. Just check the below Run Tab (See IMG2) for all kinds of fingerprints, including SHA1 and MD5 for debugging purpose Generate SHA1, MD5 and SHA-256 certificate fingerprints or keys easily from Android Studio

We will be happy to hear your thoughts

Leave a reply

Gsmprix | Mobile Phone Reviews, Mobile Specifications
Compare items
  • Total (0)