RE: 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. It jsut seems to be very tempermental. Has anyone had any experience of this? Does it have anything to do with the connection to the server? Feedback and advice would be greatly appreciated as if this cannot be trusted to work 100% of the time, then it is not much use to us in the application. Someone did mention CFUSION_encrypt but have been warned against using this as it is an unofficial function. The error message we have been getting is: An error occurred while evaluating the expression: CI = Decrypt(ToString(ToBinary(URL.Card_Id)),secret_key) The value to be decrypted is not valid 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Encrypt and Decrypt function
Chris, Take a look at some of the past messages in this thread. There was a whole discussion on this a few days ago. A few people proposed potential solutions to the issue you're describing. In my own opinion, this is a problem with the encrypt() function (here we go again, Ray... :)), but there are viable workarounds and solutions. Good luck, Tyson -Original Message- From: Chris Bohill [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 9:36 AM To: CF-Talk Subject: RE: 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. It jsut seems to be very tempermental. Has anyone had any experience of this? Does it have anything to do with the connection to the server? Feedback and advice would be greatly appreciated as if this cannot be trusted to work 100% of the time, then it is not much use to us in the application. Someone did mention CFUSION_encrypt but have been warned against using this as it is an unofficial function. The error message we have been getting is: An error occurred while evaluating the expression: CI = Decrypt(ToString(ToBinary(URL.Card_Id)),secret_key) The value to be decrypted is not valid 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Encrypt and Decrypt function
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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists