Any difference between MD5 and SHA1 for getting MAP API?

女生的网名这么多〃 提交于 2019-12-18 17:57:10

问题


I am getting following results:

C:\Program Files\Java\jdk1.7.0\bin>keytool -list -alias androiddebugkey -keystor e "C:\Documents and Settings\Administrator.android\debug.keystore" -storepass a ndroid -keypass android androiddebugkey, May 27, 2011, PrivateKeyEntry, Certificate fingerprint (SHA1): "Some Code"

But after entering this in http://code.google.com/android/maps-api-signup.html for getting MAP API it is showing invalid fingerprint.

Can you please guide me is the fingerprint I have got is correct or not. Because I am getting it as SHA1 and not MD5. How can I get API key??


回答1:


keytool -v -list -alias alias_name -keystore my-release-key.keystore

With JDK 1.7 installed, keytool outputs by default SHA1 fingerprint, not MD5. Adding -v option allows to see MD5 as well.

Please update the page with this info, many devs are having problems trying to get a maps key.

http://code.google.com/p/android/issues/detail?id=19035




回答2:


After entering key add ; and your application package name eg. sha1 code blablabla;com.example and then generate the key.

Happy coding....

also check this tutorial and recheck steps you followed it worked for me....



来源:https://stackoverflow.com/questions/6306473/any-difference-between-md5-and-sha1-for-getting-map-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!