Obtain the MD5 value and SHA1 code of the Android signature file

Table of contents

foreword

1. Only SH1 and SHA256 can be obtained by using the command line

​edit

2. The MD5 value can be obtained by using gradle

1. Open Android Studio, click Gradle on the right

2. Click the elephant and enter the command to query signature information

Summarize


foreword

The company's App project needs to be filed, and the MD5 value and SHA1 code need to be collected. The previous command line method only obtains SHA1. It is strange. After learning online, there is another way.

1. Only SH1 and SHA256 can be obtained by using the command line

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

Note 1: my-release-key.keystore is the name of your key;

Note 2: Only SHA1 code and SHA256 code can be obtained, without MD5 value.

2. The MD5 value can be obtained by using gradle

1. Open Android Studio, click Gradle on the right

2. Click the elephant and enter the command to query signature information

gradle signingReport

Note that the module where the app is located should be selected here, otherwise the default query result is the system debug.keystore file information

Default signature file information

 

Signature file information used by the project

 

So far, we have obtained the MD5 value of the signature file, Sahua~ 


Summarize

New skills get√

Guess you like

Origin blog.csdn.net/u010111008/article/details/130869419