panxw / android-aes-jni Goto Github PK
View Code? Open in Web Editor NEWAndroid AES sample for JNI&Java.
Android AES sample for JNI&Java.
1:jni aes_key 换成16位后,每次加密都不一样的呢。
2:跟我android里面用java加密不一样
谢谢~
I added the code in MainActivity to test the performance.
long start = System.currentTimeMillis();
for(int i=0; i<10000; i++)
{
data = AESCryptor.crypt(data, System.currentTimeMillis(), 0);
}
long end = System.currentTimeMillis();
System.out.println("JNI_AESCryptor Time="+(end-start));
And I got about 43 second each time.
But the JavaAESCryptor.encrypt always ran about 7 second.
What makes these happening?
Maybe my test method was wrong?
i have a question
#define MAX_LEN (2 * 1024 * 1024)
why are you define MAX_LEN?
has AES256 limited size?
if i skip MAX_LEN code, its occur error?
Thank you.
aes_encrypt_cbc 和 aes_decrypt_cbc 方法体一样,你该不会是没写解密吧。。。
我是在Android里调用,想比对验证下。原java的aes加密key是个字符串,我该怎么改成与你代码里的Key一样呢?
为什么我将这个工程编译好了,而且我在工程里面测试过都能正常运行的。然后我将这个工程里面的so包,拿出来放到别的工程里面用就会出错。
是否能完成一个在jni层获取apk签名的安全加密解密?利用签名加密和解密呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.