A
A
akaaxel2016-04-07 11:40:10
linux
akaaxel, 2016-04-07 11:40:10

How to decrypt a file?

There is a file with the following format:
1. 8 bytes initial value for Triple DES
2. Data encrypted using Triple DES (EDE/DED) with the initial value from point 1, CBC mode
3. 32 bytes SHA265 from the original text
The original text is read in blocks by 8192 bytes, encrypted and written to the output file. If
the size of the input block is less than 8192, then its size is aligned to a multiple of 16 spaces.
The password for DES3 consists of Latin letters and numbers no longer than 7 characters. The TripleDES encryption key is
an MD5 digest of the password.
How to decrypt it if I know the password?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
akaaxel, 2016-04-07
@akaaxel

I read and deleted the first 8 bytes through hexeditor. Deleted the last 32 bytes. then I run
#openssl des-ede3-cbc -d -in test.bin -K (here echo "passw" | md5sum) -iv (there are the first 8 bytes from the file that I deleted)
Doesn't work(

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question