Git Product home page Git Product logo

checksignatureinnativesample's Introduction

#CheckSignatureInNativeSample

前言

安全 这个问题就不多讲了,没有绝对的安全,我们能做的只是增加破解难度。

这两天看了一下如何防止二次打包,发现可以通过检测 App 签名的方式来判断是被修改。直接在 Java 层判断很容易,调用现有接口,然后判断就行了,但是这样很容易被别人反编译然后破解掉。但是如果放在 native 层检测的话,会稍微安全一些。

所以这里把这几天收集的资料整理成了一个 demo,希望对大家有所帮助。

因为刚接触 JNI,所以如果内容有什么错误的地方,希望大家指出,帮助改正。

目的

如果 App 被别人二次打包,那就让 App 无法启动。

参考

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.