There are wide range of features available in Firebase like Database, Authentication, Functions and many more. Firstly, you need to add your SHA1 fingerprint to the Firebase project to make these features work in your app. Without SHA1 fingerprint these features won’t function in your app. In this tutorial lets discuss how to create and add SHA1 fingerprint to your Firebase project.
Coming to generating SHA1 fingerprint, these should be generated with two different environments. First is debug SHA1 fingerprint and the second one is release key store SHA1 fingerprint. Initially we learn how to generate SHA1 fingerprint and later we will learn how to add these SHA1 fingerprint’s to the Firebase project.
Note : Make sure that you have installed JDK to generate SHA1 key.
Debug SHA1 Fingerprint
Hash functions are built in a way that it's very easy to generate a hash / fingerprint for a text, but almost impossible to decode the hash back to the original text. A hash, or hash function is a function that can be used to convert data of any size to a much smaller size. It's like a fingerprint of the data. SHA-1 (160 bit) is a cryptographic hash function designed by the United States National Security Agency and published by the United States NIST as a U.S. Federal Information Processing Standard. SHA-1 produces a 160-bit (20-byte) hash value. A SHA-1 hash value is typically expressed as a hexadecimal number, 40 digits long. Hash functions are built in a way that it's very easy to generate a hash / fingerprint for a text, but almost impossible to decode the hash back to the original text. A hash, or hash function is a function that can be used to convert data of any size to a much smaller size. It's like a fingerprint. The fact that we can see a SHA-1 fingerprint of a certificate in, say Mozilla Certificate Viewer, does not necessarily mean that the same cryptographic function (SHA-1) is the Signature Algorithm that was used by a Certificate Authority to issue a certificate.
While running the app from Android Studio project to the emulator, some of the Firebase features won’t work until you create and add SHA1 key to the Firebase project. So, here is the command used to generate SHA1 key of the local machine.
Sha1 File Hash Generator
Keystore SHA1 Fingerprint
Oftenly people complaint about their Firebase features not working in the released version of the app. This can be resolved by creating new SHA1 fingerprint from the keystore file and update it to the Firebase project. Zeus master of olympus crack.
keytool -list -v -keystore <path/to/keystore/file> -alias <alias_name> -storepass <assword_of_file> -keypass <password_of_alias>
Sha1 Fingerprint Android Studio
For instance I have a keystore file named as shadow_technos.jks present on my desktop folder. So, for this keystore file I have already created alias entry as calculator. Later the password for the keystore file is root1234 and password for alias entry in the keystore file is calculator. Finally the entire thing will sum-up as a terminal command as follows.
Add SHA1 to Firebase
After create of SHA1 fingerprint finally we need to add it to Firebase. Finally navigate to your Firebase project’s setting –> General tab.
Scroll down to the bottom of the page and find Add fingerprint. Add your SHA1 fingerprint there and save it.