Home » Android » Android google maps – keytool generates SHA1 instead of MD5 hash

Android google maps – keytool generates SHA1 instead of MD5 hash

Posted by: admin June 15, 2020 Leave a comment


When I trying to generate MD5 key using Keytool “C:\Program Files\Java\jdk1.7.0\bin”
with this parameters:

C:>”C:\Program Files\Java\jdk1.7.0\bin\keytool.exe” -list -alias and
roiddebugkey -keystore “C:\Users\user1.android\debug.keystore” -storepass andro
id -keypass android
androiddebugkey, 20.09.2011, PrivateKeyEntry,
Huella Digital de Certificado (SHA1): ED:55:7E:68:28:7A:90:28:B1:2F:62:3A:B5:94:06:DD:C4:6C:D6:20

and when I’m trying to submit this “ED:55:7E:68:28:7A:90:28:B1:2F:62:3A:B5:94:
06:DD:C4:6C:D6:20” key to http://code.google.com/android/maps-api-signup.html – it is not working. How to make it work? Why am I having SHA1 instead of MD5 ?

How to&Answers:

You have to use the Keytool from jdk1.6


Add -v in your commmand as shown below:

keytool -v -list -keystore .....


Use this command to get your MD5 fingerprint.

C:\Program Files\Java\jdk1.6.0_16\bin>keytool -list -alias androiddebugkey 
-keystore "Your debug key location" -storepass android -keypass android

You can also get the full tutorial at androidcookers.co.cc


Try this one:

C:\Program Files (x86)\Java\jdk1.7.0_07\bin>keytool -exportcert -alias androiddebugkey -keystore "C:\Users\itt\.android\debug.keystore" -list -v



 C:\Program Files\Java\jdk1.6.0_20\bin>keytool.exe -list -v -alias androiddebugkey 
-keystore C:\Users\DON\.android\debug.keystore -storepass android -keypass android

DON is ur system name


I’ve not installed Java 7 myself, but there is a new command line argument to its keytool, namely -keyalg.

I know you can specify -keyalg RSA, so maybe -keyalg MD5 will give you the right key.