Use Android studio to generate signature file and get MD5

Content highlights:

1. Android studio generates a signature file

2. Get MD5 through Android studio

One, Android studio generates a signature file

  1. In the menu bar, click Build> Generate Signed APK.


    image.png

2. Select a module from the drop-down menu, and click Next.

image.png

3. Click Create new to create a new key and keystore.

image.png

4. On the New Key Store window, provide the following information for the keystore and key,

image.png

Keystore

Key store path: Select the location to create the key store.

Password: Create and confirm a secure password for your keystore.

Key

Alias: Enter a distinguished name for your key.

Password: Create and confirm a secure password for your key. This password should be different from the password you chose for the keystore

Validity (years): Set the validity period of the key in years. The key should be valid for at least 25 years, so that you can use the same key to sign app updates for the entire life of the app.

Certificate: Enter some information about yourself for the certificate. This information will not be displayed in the app, but will be included in your certificate as part of the APK. (Information must fill in at least one)

First and Last Name: Full Name
Organizational Unit: Organizational Unit
Organization: Organization
City or Locality: City or Place
State or Province: State or Province
Country Code(XX): Country Code

After filling out the form, click OK.

2. Get MD5 through Android studio

1.  Select the Terminal tool in the menu bar at the bottom of the studio

image.png

2. Switch the directory to the tese.jks file directory, enter keytool -list -v -keystore test.jks, and press Enter. Enter the keystore password android (this is the password corresponding to the complete information when creating a new signature file, "android" is the password I filled in at the time), you can complete

keytool -list -v -keystore test.jks

Guess you like

Origin blog.51cto.com/14475876/2608056