首页 > android 如何进行 native 加密解码

android 如何进行 native 加密解码

public class Security {


public native byte[] DecryptMsg(String strMsg);
public native byte[] EncryptMsg(String strMsg);

public native byte[] EncryptPass(String strPass);

static{
    System.loadLibrary("security");
}
}

native方法已经写好了,下一步make一下,再下一步生成头文件,再下一步创建c或者c++引入头文件实现里面的方法就可以了。

【热门文章】
【热门文章】