Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I have the following A Encrypted file and the same file in its original(not encrypted) form

Now will it be possible to find the encryption/decryption key by comparing the the above two files are there any known programs that can help me.

any help will be highly appreciated

edit: I have uploaded the two files as zip file(size is just 73KB) to mediafire ZIP password is : 123123123 link:http://www.mediafire.com/?0zf10i589l72j90

i am willing to offer a $$ Bounty for helping me out on this and providing me a tool to find the decryption key by comparing two files and subsequently using the key to decrypt the encrypted files.

share|improve this question
    
Off-topic because: Requests for analyzing or decyphering a block of data are off-topic here, as the results are rarely useful to anyone else. –  hunter Oct 15 '13 at 18:25
add comment

closed as off-topic by hunter, Reid, owlstead, Maeher, nightcracker Oct 15 '13 at 22:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Requests for analyzing or deciphering a block of data are off-topic here, as the results are rarely useful to anyone else." – hunter, Reid, owlstead, Maeher, nightcracker
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

I have not examined the zip file. I will leave that for you as exercise. But I'll try to give quick advice how to proceed with finding key, in typical cases.

The first things would be to find out what cryptographic algorithm has been used to encrypt the file. Maybe the name of algorithm is mentioned (file metadata, or you know the program used to encrypt)? Is there anything that reveal key size?

If there is not anything obvious (like identifier of the encryption mechanism), try to look for differences between encrypted and original form, such as is there difference in length? Is it padding?

If there is padding applied, the size of padding may suggest the algorithm. If the file is padded to multiple of 8 bytes, the most common algorithms would be: * DES, 3DES if to 16 bytes: * It is likely AES (Maybe there is reason to expect some other cipher, if text is Russian, it could be GOST.)

Or maybe there is reason to suspect something weaker i.e. maybe the encrypted file does not appear binary at all (then it is possibly exercise with a substitution cipher, in that case continue reading here possible ways to crack simple substitution ciphers). Anyway, try to determine or guess the cipher.

Modern well-tested block ciphers like 3DES and AES using properly generated key are designed to be invulnerable (known plaintext will make it easy to test for solution, but finding solution will still take very long time as the key space is amazingly large) to known plaintext attack. If this is exercise work, you may expect some intentional weakness (like most key bits are zero). In case there is no reason to the material was made intentional easy to find the key, you can stop now. It is likely no use trying.

In case you expect DES and you're ready to spend quite a while, it is doable. If it is a toy or exercise cipher, you should get lucky.

In case you expect that the encryption key is actually based on a (possibly) weak password, then the most effective way to crack the encryption is likely to brute-force the password instead of the key. To do this you need to first determine the key derivation algorithm used.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.