What Should I Do First? Decrypt Or Decompress? Python
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 decompr
Solution 1:
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
Post a Comment for "What Should I Do First? Decrypt Or Decompress? Python"