Chris
I think the reason you are getting problems may be because some of the
chracters generated by the Encrypt function may be ascii characters which
are not URL safe and may need URL encoding
there is another thread somewhere which discussses this. Also be warned the
functions Craig told you about, which i believe do not suffer from the same
problem are actually undocumented and unofficial functions. Bear this in
mind when you use them as they are NOT guaranteed to be supported in future
versions/releases/service packs etc.
HTH
Kola Oyedeji
Web developer
Macromedia Certified Advanced ColdFusion 5 Developer
http://www.Alexandermark.com
(+44)020-8429-7300
> -----Original Message-----
> From: Craig Dudley [mailto:[EMAIL PROTECTED]]
> Sent: 29 August 2001 10:29
> To: CF-Talk
> Subject: RE: Encrypt and Decrypt function
>
>
> Try using CFUSION_encrypt instead...
>
> // Encrypt URL param
> CFUSION_encrypt(URL.Card_Id,secret_key);
>
> // Decrypt URL param
> CFUSION_decrypt(URL.Card_Id,secret_key);
>
>
> -----Original Message-----
> From: Chris Bohill [mailto:[EMAIL PROTECTED]]
> Sent: 29 August 2001 10:20
> To: CF-Talk
> Subject: Encrypt and Decrypt function
>
>
> Hi all.
>
> Are there any known Bugs associated with the Encrypt and Decrypt
> function. We have used these functions to encrypt variables
> that we are
> passing through as URL's.
>
> 95% of the time this works fine, but sometimes we get the following
> message, or similar messages. Two minutes later it will be working
> again.
>
> Has anyone had any experience of this. Feedback would be greatly
> appreciated.
>
> An error occurred while evaluating the expression:
>
> CI = Decrypt(ToString(ToBinary(URL.Card_Id)),secret_key)
>
> Chris Bohill
> WEB APPLICATIONS DEVELOPER
>
> Biznet
>
> Head Office
> 133-137 Lisburn Road, Belfast
> Northern Ireland BT9 7AG
> T +44 (0) 28 9022 3224
> F +44 (0) 28 9022 3223
> E <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
> W <http://www.biznet-solutions.com/> biznet-solutions.com
>
>
>
> **************************************************************
> **********
> **********************************************************************
>
> If you are not the intended recipient, or person responsible for
> delivering it to the intended recipient, you are not authorized
>
> to and must not disclose, copy, distribute or retain this
> message or any
> part of it.
>
> The opinions / views / comments on this e-mail do not necessarily
> reflect any views or policies of biznet
>
> The recipient should check this email and any attachments for the
> presence of viruses. biznet accepts no liability for any damage caused
> by any virus transmitted by this email. biznet 2001.
>
> **************************************************************
> **********
> **********************************************************************
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists