You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用OpenSSL解密文件时遭遇"hex string is too short, padding with zero bytes to length"错误的解决咨询

使用OpenSSL解密文件时遭遇"hex string is too short, padding with zero bytes to length"错误的解决咨询

大家好,我最近在用OpenSSL解密文件时碰到了棘手的问题,想请教下各位前辈的解决思路。

我手头有一份导师提供的加密文件fc382Crypto.bin,要求用Blowfish算法+CBC模式解密。最开始我用的解密命令是这样的:

openssl enc -aes-128-cbc -d -in fc382Crypto.bin -out decrypted_output.txt -K 112233445566778899 -iv 0000000000000000

但每次执行都会弹出以下错误信息:

hex string is too short, padding with zero bytes to length
hex string is too short, padding with zero bytes to length
bad decrypt

我尝试过给命令添加-nopad选项,不过问题依然存在。另外我也验证过fc382Crypto.bin的文件完整性,确认没有损坏的情况。

导师明确给出的加密参数如下:

  • 算法:Blowfish
  • 模式:CBC
  • 密钥:112233445566778899
  • IV:0

我现在完全摸不着头脑,不知道为什么会出现这些错误,也不清楚该怎么调整命令才能正确解密这个文件。有没有大佬能帮忙指点一下?

备注:内容来源于stack exchange,提问作者BariBx

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 08:13:06