我该怎么办?解密或解压缩?蟒蛇 [英] What should I do first? Decrypt or Decompress? Python
本文介绍了我该怎么办?解密或解压缩?蟒蛇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试解密彭博数据文件,我知道是DES加密的。 ' FileName ='comdty_option_namr.out.gz.enc
做什么是正确的顺序:打开文件并解压缩然后解密,反之亦然?
解决方案
嗯,这一切都取决于文件的转换方式,有两种可能的方式(在你的情况下是#1):
- 首先创建zip,然后加密zip
- 首先加密该文件,然后将其压缩
-
文件的扩展名通过从左到右阅读来告诉您操作顺序:
-
comdty_option_namr.out
是文件的名称 - 文件获得
gzipped
,从而达到comdty_option_namr.out.gz
- 之后的
gzip
存档加密,导致文件comdty_option_namr.out。 gz.enc
I'm trying to decrypt Bloomberg data files that I know are DES encrypted.
FileName = 'comdty_option_namr.out.gz.enc'
What is the right order to do things: Open the file and decompress and then decrypt or vice-versa?
解决方案
Well, it all depends on the way the file was transformed, and there are two possible ways (in your case is #1):
- first create the zip, then encrypt the zip
- first encrypt the file, then zip it
The extension of the file tells you the order of operations, by reading them from left to right:
comdty_option_namr.out
is the name of the file- the file got
gzipped
, thus getting tocomdty_option_namr.out.gz
- after which the
gzip
archive to encrypted, resulting the filecomdty_option_namr.out.gz.enc
这篇关于我该怎么办?解密或解压缩?蟒蛇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文