Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get SHA1 fingerprint certificate in Android Studio for Google Maps

I want to get the SHA1 key from Android Studio on a Mac. From Eclipse it's simple, but I can't get this in Android Studio.

I have checked similar questions but didn't get any way to get that in MAC.

The SHA1 is different for signed and unsigned APK. Please mention the methods to get for both.

Thanks in advance.

like image 449
arslan haktic Avatar asked May 06 '15 07:05

arslan haktic


People also ask

How do I get a SHA1 certificate fingerprint?

If you've published your app using Play App Signing, a requirement when using Android App Bundle, you can get your SHA-1 from the Google Play Console on the Release > Setup > App Integrity page.

What is SHA1 certificate fingerprint?

SHA-1 also referred to as the Secure Hash Algorithm. It is a cryptographic hash function that will take input and it produces a 160-bit hash value. This generated hash value is known as a message digest. This generated hash value is then rendered in a hexadecimal format number which is 40 digits long.


1 Answers

I got my Answer, it was quit simple. Open Terminal, Type command:

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

Press Enter: You will get the following info, and SHA1 can be seen there.

.....

Certificate fingerprints:

 MD5:  79:F5:59:................FE:09:D1:EC   SHA1: 33:57:0A:C9:..................:91:47:14:CD   SHA256: 39:AA:23:88:D6:...................33:DF:61:24:CB:17:47:EA:39:94:99 

.......

like image 119
arslan haktic Avatar answered Sep 29 '22 19:09

arslan haktic