openssl - openssl 解密问题因 EVP_DecryptFinal_ex 失败:解密错误
问题描述
我正在使用OpenSSL 1.1.1f 31 Mar 2020
,但在解密用 openssl 加密的数据时遇到问题。
加密命令是
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in in.txt -out out.dat
解密命令是
openssl aes-256-cbc -d -md sha256 -salt -iter 100000 -pbkdf2 -in out.dat -out out.txt
错误是
输入 aes-256-cbc 解密密码:bad decrypt 139749253547328:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:583:
谢谢
解决方案
推荐阅读
- java - ServletRequest.getServletContext() 的 UnsupportedOperationException
- reactjs - 如何为 APP 和 API 设置本地 .env 文件
- java - 如何将泰勒级数写成函数
- java - 在java中维护一个唯一数组的ArrayList
- unity3d - Unity - 着色器中的 AlphaToMask 似乎不适用于移动设备(透明度)
- oracle - ORA-00984: 加载数据时,此处不允许列错误
- python-3.x - 如何创建一个具体的函数来获取蒙版图像的坐标并将其转换为 tensorflow lite 模型
- libreoffice-calc - 我们可以将脚本放入 Libre Office Calc 案例中吗?
- vue.js - 是否可以从页面调用nuxt中的组件方法?
- scala - 构造函数参数与抽象成员(类与抽象类)