简体   繁体   English

ADB Shell中的OpenSSL命令

[英]OpenSSL Commands inside ADB Shell

I just have one simple doubt. 我只是有一个简单的疑问。 Can I run openssl commands like encrypt/decrypt/verify within the adb shell command prompt? 我可以在adb shell命令提示符下运行openssl命令(例如,加密/解密/验证)吗?

PS - I have a rooted device. PS-我有一个植根设备。 And I am inside the adb shell command prompt. 我在adb shell命令提示符中。 Now I want to run the openssl command inside this prompt. 现在,我要在此提示符下运行openssl命令。

I know we have openssl library inside the system/lib but so far from what I have learnt we can use that only through conscrypt jar. 我知道我们在system / lib中有openssl库,但是到目前为止,我了解到的知识只能通过conscrypt jar使用。

But can we use it from adb shell? 但是我们可以在adb shell中使用它吗? If yes, how? 如果是,怎么办?

OpenSSL consist from 3 parts: libssl.so libcrypto.so and openssl command line tool. OpenSSL由三部分组成:libssl.so libcrypto.so和openssl命令行工具。 Last seems to be not compiled and you should cross compile by yourself. 最后似乎没有被编译,您应该自己交叉编译。 libssl.so libcrypto.so there is in system/lib. libssl.so libcrypto.so在系统/ lib中。 see http://wiki.openssl.org/index.php/Android 参见http://wiki.openssl.org/index.php/Android

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM