Tuesday, 8 April 2014

How to generate MD5, SHA, SHA256 key.

     Here i am showing you have to create SHA,MD5,SHA256 key using keytool. You need to use this key to get API key of Google Map,GCM etc.  

 First give path to your java/bin folder like...

C:\Program Files\Java\jdk1.7.0\bin>   

Here is command which you need to use to get keys. I am using development debug key you can replace place,alias name,password with your release key.    

C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore "C:\Users\Sandy\.a
ndroid\debug.keystore" -alias androiddebugkey -storepass android -keypass androi

And here you will get what you expecting.
lias name: androiddebugkey
Creation date: 7 Jan, 2014
Entry type: PrivateKeyEntry
Certificate chain length: 1
Owner: CN=Android Debug, O=Android, C=US
Issuer: CN=Android Debug, O=Android, C=US
Serial number: 62b40369
Valid from: Tue Jan 07 11:05:57 IST 2014 until: Thu Dec 31 11:05:57 IST 2043
Certificate fingerprints:
         MD5:  45:BA:0F:92:F6:DD:D6:8D:E5:47:FA:56:CB:E6:0E:BF
         SHA1: 3C:CF:6B:35:5F:A5:C8:DB:4F:92:FE:CB:BD:53:81:F7:B5:6D:2D:2C
         SHA256: E6:3F:12:23:30:EB:EE:28:62:41:47:25:84:A7:D7:86:F0:77:DA:C8:26:
         Signature algorithm name: SHA256withRSA
         Version: 3


#1: ObjectId: Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 72 E1 56 BD FB A1 2E 4E   17 B6 B9 BF 9B 34 D7 C7  r.V....N.....4..
0010: C0 93 DD A7                                        ....

No comments:

Post a Comment