The easiest way to get the sha1 value of an Android app

Every Android application has a signing certificate, which can be generated by jdk. When the certificate is generated, the certificate has its sha1 value, md5 value and sha256 value.

The apk packaged with this certificate also has the same sha1 value, md5 value and sha256 value.

There are two ways to get the sha1 value.

1. Unzip the apk, get its .RSA file in the META-INF directory, and then use the following command to get the sha1 value:

 keytool -printcert -file CERT.RSA

2. Use the following command to get the sha value of the signed certificate (.keystore or .jks file)

keytool -list -v -keystore D:\debug.keystore -storepass 123456

The 123456 above is the certificate password

The above is to use the local command to get sha worth method, but in fact do not need too much trouble, there is free of online tools get sha1 value .keystore or apk files to share with a:

https://www.yunedit.com/sha1

On this platform, ios and android certificates can be generated for free, which is awesome.

Guess you like

Origin blog.csdn.net/h5xiaoyu/article/details/93720862