Reputation: 129
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
Upvotes: 4
Views: 3512
Reputation: 2853
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)
Upvotes: 4
Reputation: 5564
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
Upvotes: 1