linux openssl版本切换,linux – 加密/解密在两个不同的openssl版本...
发布日期:2021-06-24 15:58:05 浏览次数:3 分类:技术文章

本文共 838 字,大约阅读时间需要 2 分钟。

我已经下载并编译了openssl-1.1.0.

我可以使用openssl的相同exe加密和解密(如here)

me@ubuntu:~/openssl-1.1.0$LD_LIBRARY_PATH=. ./apps/openssl aes-256-cbc -a -salt -in file.txt -out file.txt.enc

enter aes-256-cbc encryption password: 123

Verifying - enter aes-256-cbc encryption password:

me@ubuntu:~/openssl-1.1.0$LD_LIBRARY_PATH=. apps/openssl aes-256-cbc -a -d -in file.txt.enc -out file.txt.dec

enter aes-256-cbc decryption password: 123

这个openssl使用:libcrypto.so.1.1,libssl.so.1.1

当我尝试使用我的ubuntu上安装的openssl解密时,它使用:

/lib/x86_64-linux-gnu/libssl.so.1.0.0,/lib/x86_64-linux-gnu/libcrypto.so.1.0.0

我收到一个错误:

me@ubuntu:~/openssl-1.1.0$openssl aes-256-cbc -a -d -in file.txt.enc -out file.txt.dec2

enter aes-256-cbc decryption password: 123

bad decrypt

140456117421728:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:539:

可能是什么原因导致的

谢谢

转载地址:https://blog.csdn.net/weixin_33682804/article/details/116856338 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:meltdown linux检测,Linux操作系统已拥有自动化的Spectre/Meltdown检查器
下一篇:linux无线网卡monitor模式,ubuntu下开启无线网卡的monitor mode

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2024年04月15日 05时00分12秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章