Android的缓慢AES解密缓慢、Android、AES

2023-09-05 00:51:11 作者:君生我未生

参考: Android的加密/解密的问题(AES)

我建立一个Android应用程序,需要一个真正的大包AES解密(〜50 MB),它是真正的Andr​​oid的内置AES加密机制来实现(约5分钟)时慢。

I am building an android app which requires aes decryption of a really large package (~50Mb) and it is really slow when implemented in android's inbuilt aes decryption mechanism (around 5 minutes).

根据在SO上述文章中,我尝试使用NDK,并试图下载本机库(OpenSSL的),使用这个应用程序。不过,OpenSSL的为Android有一个非常大量的文件,我不知道该用哪些创建.so文件。

Based on the above posts in SO, I attempted to use ndk and tried to download native libraries (openssl) to use for this app. However, openssl for android has a really large number of files and I do not know which ones to use to create the .so file.

我很缺乏经验与使用NDK和本地code的Andr​​oid应用程序,并会发现如何使用OpenSSL库的AES解密真正有用的。

I am quite inexperienced with the use of ndk and native code in android apps and would find any suggestions/sample code on how to use openssl library for aes decryption really useful.

在此先感谢, 纳文

推荐答案

尝试 SpongyCastle 了一个重新包装BouncyCastle的是惯于与一个发布采用Android冲突。一个在Android系统是旧的(如果你甚至有机器人,包括它的释放)。

Try SpongyCastle its a repackaged BouncyCastle that wont conflict with the one released with Android. The one on Android systems is old (if you even have a release of Android that includes it).

这应该是你所需要的。

This should be all you need.