惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - wjwdive

如何使用git submodule拆分大的git项目 MAC多github账号配置步骤 - wjwdive 记录一次flutter boost5.0.2示例调试的过程 【算法】可获得的最大点数问题 使用1panel一键建站 关于混合加密(AES+RSA) C++设计模式汇总 设计模式C++005__桥模式 设计模式C++007__抽象工厂方法模式 设计模式C++004__装饰器模式 设计模式C++003__观察者模式 设计模式C++002__策略模式 设计模式C++001__模板方法 使用bundler自动化构建Xcode项目时遇到的问题。 - wjwdive AI图片生成网站 suno AI编曲创作利器 iOS组件化开发之私有库 阿里图标库批量下载iOS适配的图标 C语言实现回调函数标准方式 - wjwdive swift 自定义tabbar为基本结构的项目 swift 可选类型
iOS、Android获取apk公钥MD5信息
wjwdive · 2024-03-25 · via 博客园 - wjwdive

背景
国家工信部规定,所有国内在线或即将上线的APP做备案,否则无法通过域名访问。
其中iOS和Android备案所需的APP相关信息我们不能直接明文获取,有 公钥,MD5,包名,APP名,接口服务的域名等
对于iOS端,如果是开发者,直接在苹果的证书管理网站上下载证书到本地打开,即可获得。
参考
对于Android端我们可以使用工具
首先,我们得到apk生产包,xxx.apl。
然后有三种方案,

一、使用JadxGUI工具

https://github.com/skylot/jadx,可以百度一下不通平台的使用方法。

二、使用keytool工具

java8以上版本有keytool工具,keytool的目录:
mac可能在终端里无法使用,可以使用命令:/usr/libexec/java_home -V 获取java安装目录:
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
切换到此目录下,使用命令:keytool -printcert -jarfile xxx.apk 获取MD5,SHA1等信息:
keytool -printcert -jarfile /apkpath/xxx.apk

三、解压apk包后,使用keytool工具

直接解压APK包
找到META-INF/CERT.RSA文件,并执行命令:keytool -printcert -file CERT.RSA