I'd start by removing trim() from your encrypt call. Any change to an
encyrtped value will cause failure.

--
Rodney

On Wed, Aug 31, 2011 at 1:23 PM, Robert Harrison <[email protected]
> wrote:

>
> This has got to be a bug.
>
> The question is does this make CF encrypt and decrypt totally unreliable,
> or is there something I know I can count on to work around this... like make
> a longer key or something?
>
>
>
> -----Original Message-----
> Am I doing something wrong here? See these lines of code.
>
> <cfset testval="6546">
> <cfset inval="#encrypt(trim(testval),"sn")#">
> <cfset outval="#decrypt(trim(inval),"sn")#">
>
> This gives the error: The input and output encodings are not same.
>
> Most of the time this works fine. Change the testval or change the key it
> works... but every now and then I get the error.
>
> Am I doing something wrong, or is this a bug?
>
> Thanks
>
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:347167
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to