4

I used keytool to get signature, it prints SHA1, SHA256, but no MD5. I have viewed all the topics from StackOverflow, every reply ask to add -v or -list to give MD5 signature, but my keytool just don't give the MD5 signature. I used the command below.

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

image

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
cheng dong
  • 119
  • 5

2 Answers2

4

Go to Gradle in the right of your Android Studio > Project name > app > Tasks > android > signing Report > Double click

Now see the MD5 signature from Run Tab(in Left Bottom)

Ashish
  • 6,791
  • 3
  • 26
  • 48
Anupam
  • 2,845
  • 2
  • 16
  • 30
1

Extract the apk file and go to the META-INF folder, you will find .RSA files.

In cmd use keytool to print cert info with below command :

    keytool -printcert -file "Path to CERT.RSA" 

This will print certificate fingerprints as below :

Certificate fingerprints:
         MD5:  ********************5
         SHA1: *****************************2
         SHA256: *******************************12:23
         Signature algorithm name: SHA1withRSA
         Version: 3
Manishika
  • 5,478
  • 2
  • 22
  • 28