checking for encryption

2013-05-25 Thread Rob Voyle
Hi Folks I have a variable that may or may not be encrypted. How do I test for the encryption. If I try to decrypt it when its not encrypted I get an error message The input and output encodings are not same.. Thanks Rob

Re: checking for encryption

2013-05-25 Thread Matt Quackenbush
Try/catch around the decryption? If you get that known message you could ignore it and move on. I'm not saying this is a good solution, but could get you going. The main issue would be if the key was changed or something like that, it'd hit the same exception. Off the top of my head I am not

Re: checking for encryption

2013-05-25 Thread Rob Voyle
Thanks Matt, Worked like a charm Rob On 25 May 2013 at 12:31, Matt Quackenbush wrote: Try/catch around the decryption? If you get that known message you could ignore it and move on. I'm not saying this is a good solution, but could get you going. The main issue would be if the key