Android开发安全汇总

作者: ddyos | 来源:发表于2019-04-20 19:51 被阅读3次

官方指南

官方文档:https://developer.android.com/training/articles/security-tips?hl=zh-cn

代码混淆,APK加壳

敏感数据加密

1.运行时数据(例如用户token)需要使用随机秘钥加密。

2.静态数据(例如 API key / secret )需要用固定秘钥加密。

  • 固定秘钥存放:so库中。
  • 防止非法读取:在 so 库的 C 代码里 JNI_OnLoad() 方法对 APK 签名进行验证,如果签名不对,直接 crash。

详细参考:https://www.diycode.cc/topics/501

网络安全

  1. https中间人攻击
  • 应用中内置证书并进行校验
  1. WebView安全:

参考资料

https://developer.android.com/training/articles/security-tips?hl=zh-cn
https://www.diycode.cc/topics/501](https://www.diycode.cc/topics/501
https://zhuanlan.zhihu.com/p/21787366](https://zhuanlan.zhihu.com/p/21787366

相关文章

网友评论

    本文标题:Android开发安全汇总

    本文链接:https://www.haomeiwen.com/subject/jgrlgqtx.html