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");
}
}
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");
}
}
4 回答1.7k 阅读✓ 已解决
4 回答1.4k 阅读✓ 已解决
1 回答2.7k 阅读✓ 已解决
4 回答2.2k 阅读
3 回答1.1k 阅读✓ 已解决
3 回答1k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
native方法已经写好了,下一步make一下,再下一步生成头文件,再下一步创建c或者c++引入头文件实现里面的方法就可以了。