Giter Site home page Giter Site logo

keysosafe's Introduction

KeySoSafe

本工程使用最简单的 cmake 将秘钥放入SO,通过包名和签名的比对,以防止可以防止so库被其他人二次打包

使用方法

  1. src/main/cpp/native-lib.cpp 里的 const char *app_signature 需要设置为 app 的签名,具体方法见源文件注释。
  2. 当前 sign_sha1_verify 必定返回false,设置后返回true,既验证正确。
  3. 当更改包结构时,要注意 ApiKeyGeneractor 里 keyFromJNI 对应 cpp文件里的 函数名,该函数需要重新生成。

安全说明

以上只是最简单的措施,只是增加了破解代价,并非完全安全

  1. 通过IDA进行反编译so进行破解。(对应:so加固)
  2. 可以修改了这些java引用路径,欺骗so,让他获取到正确的签名。(对应:apk加固)
  3. IDA动态分析。(对应:反dump和反调试)

keysosafe's People

Contributors

lqiz avatar

Watchers

Chris avatar

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.