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 aware of anything that specifically checks
for encryption. I don't use that stuff much. There might be something in
the underlying Java that you can get at.

HTH

Sent from my Samsung Galaxy SII
On May 25, 2013 12:25 PM, "Rob Voyle" <[email protected]> wrote:

>
> 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
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to