我有一个文本文件,其中有一些字段是使用Perl的Crypt::CBC加密的。我现在是这样解密的。你知道吗
use Crypt::CBC;
my $text = <encrypted hex string>;
my $cipher_type = 'Blowfish';
my $encrypt_key = <my 64 byte key>;
my $cipher = Crypt::CBC->new(-key => $encrypt_key,
-cipher => $cipher_type);
my $decoded_text = $cipher->decrypt_hex($text);
我希望能够从Python脚本中解密十六进制字符串。从十六进制到字符串的转换非常简单,但是Python Blowfish模块只支持最多56字节的键。我想我找错地方了。你知道吗
有什么想法?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐