如何在Android Studio中添加openssl库? [英] How do i add openssl library in android studio?

查看:668
本文介绍了如何在Android Studio中添加openssl库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用ndk在我的项目中实现AES和RSA加密(不使用Java API).通过简短的研究,我知道我需要添加openssl来完成任务.我从此处 openssl 下载了库.但是其中包含大量文件.我对此感到困惑.使用库是否需要做任何事情?或者除了openssl之外,还有其他更好的方法吗?请帮我.我正在使用Ubuntu 16.04 LTS 64位系统.

I want to implement AES and RSA encryption in my project using ndk(not using java API).by brief study i coming to know that i need to add openssl for achieving my task. i downloaded library from here openssl. but that contains plenty of files. i am confused what to do with that.is there anything i need to do to use library or is there any better approach other than openssl. please help me. i am using ubuntu 16.04 LTS 64 bit system.

推荐答案

如果您正在寻找用于构建Android库的脚本,则不要比官方站点更进一步:

If you are looking for a script to build the Android libs, you should not look further than the official site: wiki.openssl.org/index.php/Android. You can easily find prebuilt binaries, if you can afford this security compromise.

您可能更喜欢Chromium叉( https://opensource.google.com/projects/boringssl )与上游不是100%即插即用兼容,但已针对Android应用程序的需求和局限进行了调整,并且有据可查.

You may prefer the Chromium fork (https://opensource.google.com/projects/boringssl) which is not 100% plug-and-play compatible with the upstream, but has been tuned for the needs and limitations of Android app, and is pretty well documented.

这篇关于如何在Android Studio中添加openssl库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆