获取apk安装包sha1的值

1. 解压apk,进入解压目录,找到META-INF/CERT.RSA,

2.执行命令 keytool -printcert -file '.../META-INF/CERT.RSA'  可以得到md5和sha1值

证书指纹:
     MD5:  8D:DB:34:2F:2D:A5:40:84:02:D7:56:8A:F2:1E:29:F9
     SHA1: 27:19:6E:38:6B:87:5E:76:AD:F7:00:E7:EA:84:E4:C6:EE:E3:3D:FA
     SHA256: C8:A2:E9:BC:CF:59:7C:2F:B6:DC:66:BE:E2:93:FC:13:F2:FC:47:EC:77:BC:6B:2B:0D:52:C1:1F:51:19:2A:B8

你可能感兴趣的:(Android)