I want to ensure that everyone who encrypts a given file gets the same encrypted file without knowing the password.
So, my idea was the following:
- hash the file
- encrypt the file (e.g. AES) with the hash
- publish it
Can this be done, if yes, is it secure?
The use case would be deduplication. Anonymity is not an issue.