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");
}
}
阅读 2.7k
1 个回答

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

推荐问题