Now, all is good except I have browse dialogs that use the encrypted field to search, they are using the raw encrypted field data from the server, returning incorrect records. How can I make them use the decrypted values like I set in my BO field property?
I know the BD creates the query dynamically and I think that is can only use actual fields and not custom (or customized) ones (???) so I am not sure how to accomplish my goal, to allow the encrypted field (SSN) to be included in the BD as a search field (with advanced options).
Keith Keith Chisarik
I am unsure of what your code may look like as I have tested this using your example and it all seems to work fine. Also, this is a class that we use extensively in the framework and within our medical software as well, so I am pretty confident that it is sound. But just in case, I created a sample that works and have attached it here. You can tweak it and let me know if you are doing something else that will spawn the error. But you might look at this sample and see if you are doing something outside of these specs.
For example "1111111" encrypts and decrypts fine, but "11111111" will encrypt but not decrypt.
Any insight appreciated as always.
The occurs in tripledeswrapper.vb at the function Decrypt, in the first line of the function:
Public