Is it ok to create and store the hash (unkeyed hash function) of a plaintext before encryption or does it lead to vulnerabilities? If it is ok are there requirements for the used hash function and encryption algorithm?
Important to mention is that the hash should not be used for integrity checks or something like that.