PyDES with Bloomberg data

1.2k Views Asked by At

I am trying to decrypt DES encoded Bloomberg financial data with PyDES. The file ends in gz.enc, I am able to read the file to a binary, reload the binary back in to a variable (the variable has data) and then use the following decryption on it.

k = pyDes.des(password, pyDes.ECB, padmode=pyDes.PAD_PKCS5)
released = k.decrypt(encrypted_data)

The problem is I get an empty string for 'released'. I unfortunately cannot share the file nor the password due to privacy laws. I cannot use the bloomberg decryption as they do not support Ubuntu nor Mac.

0

There are 0 best solutions below