3

I have a file encrypted with gpg, using AES256 and MD5. Suppose that the MD5 hash function is broken, but not the AES cipher. Does that make it easy to crack decrypt the file?

3
  • Could you provide more details, like which cipher did you used. Are you sure your talking about hash, not key?
    – Cyril N.
    May 12, 2012 at 9:49
  • What is the hash use for? Signing? May 12, 2012 at 10:37
  • lets say thats there is a file encrypted by gpg used AES256 and MD5 ... if MD5 cracked will the file decrypted easily or not
    – rezx
    May 12, 2012 at 10:57

2 Answers 2

1

Depending upon to what extent MD5 is "broken", a break of MD5 might enable chosen-ciphertext attacks. However, as far as I know, it won't enable purely passive eavesdropping.

That said, the likelihood of a catastrophic break of MD5 (bad enough to compromise the secrecy of your gpg-encrypted data) is probably much lower than other risks your system faces. I think it's unlikely that this is the weakest link in your system, or that this is anywhere near the biggest risk in your system. This risk is likely nearly negligible, compared to other kinds of risks that tend to be present in most information systems.

0
0

If MD5 is used to create the key that AES uses, then if MD5 is broken, someone else can re-create the key used by AES, and thus be able to decrypt the file.

Not unless MD5 is used with something else, like an iterated key derivation function.

MD5 is considered broken. So I suggest to not use it anymore.

1
  • side question, did hash store my key in the encrypted file, is this the header.
    – rezx
    May 22, 2012 at 16:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .