But when someone uploads the same file with a different password, if they want to de-duplicate on content alone, they need to be able to put that new encrypted file hash alongside the original.
One solution to that would be to have two hashes of the file, and to use one as the key and one as the index.