Potential security issue with md5 filename

23 views Asked by At

I've been storing files using a filename of the md5 hash of the file. This allows me to not store duplicates of the same file and avoids any filename clashes.

I want to start encrypting the contents of the file app-side (using OpenSSL PKCS5), however, by taking the md5 of the encrypted file, I lose the above benefits of the md5 filename.

Assuming the file storage was compromised, would the combination of the encrypted file and the md5 of the unencrypted file be a potential security issue?

0

There are 0 answers