We have a requirement to encrypt a string and see if the encrypted string already exists in a database.
If we use AES-GCM the same unencrypted data results in a different encrypted string each time. This renders the matching useless.
Is there a way using Java to remove the signature from the signed cipher text to reveal a cipher text that we can match on?