Generate SHA1 MD5 and SHA-256 certificate fingerprints or keys easily
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:
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