It's the TRIM functions, remove them

This works

<cfscript>
request.testval = "6546";
request.inval = encrypt(request.testval,"sn");
request.outval = decrypt(request.inval,"sn");
</cfscript>


On Wed, Aug 31, 2011 at 11:31 AM, Michael Grant <[email protected]> wrote:

>
> Who's arguing?
> And I'd disagree that improving your syntax isn't helpful.
>
>
>
>
>
> On Wed, Aug 31, 2011 at 2:27 PM, Robert Harrison <
> [email protected]
> > wrote:
>
> >
> > Yep... That's OT and not very helpful to argue about syntax :-(
> >
> >
> > Robert B. Harrison
> > Director of Interactive Services
> > Austin & Williams
> > 125 Kennedy Drive, Suite 100
> > Hauppauge NY 11788
> > P : 631.231.6600 Ext. 119
> > F : 631.434.7022
> > http://www.austin-williams.com
> >
> > Great advertising can't be either/or.  It must be &.
> >
> > Plug in to our blog: A&W Unplugged
> > http://www.austin-williams.com/unplugged
> >
> >
> > -----Original Message-----
> > From: Michael Grant [mailto:[email protected]]
> > Sent: Wednesday, August 31, 2011 2:24 PM
> > To: cf-talk
> > Subject: Re: BUG in CF9 Encrypt and Decrypt?
> >
> >
> > OT:
> >
> > You can nix the extraneous pound signs.
> >
> > <cfset inval = encrypt(trim(testval),"sn") /> <cfset outval =
> > decrypt(trim(inval),"sn") />
> >
> >
> > On Wed, Aug 31, 2011 at 2:06 PM, Robert Harrison <
> > [email protected]
> > > wrote:
> >
> > >
> > > 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
> > >
> > >
> > > Robert B. Harrison
> > > Director of Interactive Services
> > > Austin & Williams
> > > 125 Kennedy Drive, Suite 100
> > > Hauppauge NY 11788
> > > P : 631.231.6600 Ext. 119
> > > F : 631.434.7022
> > > http://www.austin-williams.com
> > >
> > > Great advertising can't be either/or.  It must be &.
> > >
> > > Plug in to our blog: A&W Unplugged
> > > http://www.austin-williams.com/unplugged
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
> 

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

Reply via email to