I know these two things don't usually mix well, but I'm wondering if its still a possibility. My application requirement is to encryped a large string of text, but still allow users to search for it.
I am using Jasypt's encrypted user types to encrypt the data. As I understand, this step happens before the Lucene listeners are invoked, and thus lucene is unable to index the original text. Is there a potential solution in allowing lucene to index the object before the encryption takes place? Perhaps using an interceptor instead of the provided listeners?
Has anyone had this requirement before, or have any ideas on how it could be done?
|