Returning MD5 instead of SHA1 from JDK 1.7 Keytool

Google MapsIf you are working with Android development, you know that you will need a debug MD5 key in order to request a Google Maps API Key.

Most tutorials say to go to C:usersusername.Android and type:

keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android

Unfortunately, as of Java 7,  the keytool format has changed a bit. In order to see the md5 hash that is required for Google Maps API, you must add a -v flag. The entire command now looks something like this:

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

The new keytool will give you MD5, SHA1, and SHA256 all at once. Enjoy the bonus hashes and your Google working Google Maps API key.

Leave a Reply