Re: Anyone know how to fix this or why this happening?
Thanks Billy, that was my intial reaction. As I had come across that post about the SPF and mail limits etc before. Which is why I thought it might have been a relay issue to begin with, because the mail is not actually sent using accounts email address. It is sent through that account, and sort of made sense that it might be seen as spam. But we are not seeing anything other than the logs in ColdFusion, I have added the SPF records just out of curiosity to see if this might help. But I am not 100% sure that will fix it, will have to wait and see. On Wed, Aug 31, 2011 at 3:35 PM, Billy Cravens bdcrav...@gmail.com wrote: If you can send email, then you haven't hit the limit. Have you identified any patterns (size, to, from, cc, etc) on the messages that are unsuccessful? Billy Cravens bdcrav...@gmail.com -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| 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:347156 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone know how to fix this or why this happening?
My experience has been that it automatically overwrites the from address to the specified, but I only deal with that in development. (Perhaps that behavior has changed recently) Billy Cravens bdcrav...@gmail.com On Aug 31, 2011, at 1:45 AM, Andrew Scott wrote: Thanks Billy, that was my intial reaction. As I had come across that post about the SPF and mail limits etc before. Which is why I thought it might have been a relay issue to begin with, because the mail is not actually sent using accounts email address. It is sent through that account, and sort of made sense that it might be seen as spam. But we are not seeing anything other than the logs in ColdFusion, I have added the SPF records just out of curiosity to see if this might help. But I am not 100% sure that will fix it, will have to wait and see. On Wed, Aug 31, 2011 at 3:35 PM, Billy Cravens bdcrav...@gmail.com wrote: If you can send email, then you haven't hit the limit. Have you identified any patterns (size, to, from, cc, etc) on the messages that are unsuccessful? Billy Cravens bdcrav...@gmail.com -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| 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:347157 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone know how to fix this or why this happening?
Well I went looking through the mail box, and there are emails there that have been sent. So it looks like it is being selective, but not sure why... On Wed, Aug 31, 2011 at 5:12 PM, Billy Cravens bdcrav...@gmail.com wrote: My experience has been that it automatically overwrites the from address to the specified, but I only deal with that in development. (Perhaps that behavior has changed recently) Billy Cravens bdcrav...@gmail.com On Aug 31, 2011, at 1:45 AM, Andrew Scott wrote: Thanks Billy, that was my intial reaction. As I had come across that post about the SPF and mail limits etc before. Which is why I thought it might have been a relay issue to begin with, because the mail is not actually sent using accounts email address. It is sent through that account, and sort of made sense that it might be seen as spam. But we are not seeing anything other than the logs in ColdFusion, I have added the SPF records just out of curiosity to see if this might help. But I am not 100% sure that will fix it, will have to wait and see. On Wed, Aug 31, 2011 at 3:35 PM, Billy Cravens bdcrav...@gmail.com wrote: If you can send email, then you haven't hit the limit. Have you identified any patterns (size, to, from, cc, etc) on the messages that are unsuccessful? Billy Cravens bdcrav...@gmail.com -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| 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:347158 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone know how to fix this or why this happening?
did you try wireshark? On Wed, Aug 31, 2011 at 8:16 AM, Andrew Scott andr...@andyscott.id.auwrote: Well I went looking through the mail box, and there are emails there that have been sent. So it looks like it is being selective, but not sure why... On Wed, Aug 31, 2011 at 5:12 PM, Billy Cravens bdcrav...@gmail.com wrote: My experience has been that it automatically overwrites the from address to the specified, but I only deal with that in development. (Perhaps that behavior has changed recently) Billy Cravens bdcrav...@gmail.com On Aug 31, 2011, at 1:45 AM, Andrew Scott wrote: Thanks Billy, that was my intial reaction. As I had come across that post about the SPF and mail limits etc before. Which is why I thought it might have been a relay issue to begin with, because the mail is not actually sent using accounts email address. It is sent through that account, and sort of made sense that it might be seen as spam. But we are not seeing anything other than the logs in ColdFusion, I have added the SPF records just out of curiosity to see if this might help. But I am not 100% sure that will fix it, will have to wait and see. On Wed, Aug 31, 2011 at 3:35 PM, Billy Cravens bdcrav...@gmail.com wrote: If you can send email, then you haven't hit the limit. Have you identified any patterns (size, to, from, cc, etc) on the messages that are unsuccessful? Billy Cravens bdcrav...@gmail.com -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| 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:347159 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone know how to fix this or why this happening?
No not yet Russ, being a server that I don't own I am a bit reluctant. But if I have no choice then I have no choice, but if I have too do this. What specifically would I be looking for? I find wireshark daunting at the best of times. On Wed, Aug 31, 2011 at 9:03 PM, Russ Michaels r...@michaels.me.uk wrote: did you try wireshark? On Wed, Aug 31, 2011 at 8:16 AM, Andrew Scott andr...@andyscott.id.au wrote: Well I went looking through the mail box, and there are emails there that have been sent. So it looks like it is being selective, but not sure why... On Wed, Aug 31, 2011 at 5:12 PM, Billy Cravens bdcrav...@gmail.com wrote: My experience has been that it automatically overwrites the from address to the specified, but I only deal with that in development. (Perhaps that behavior has changed recently) Billy Cravens bdcrav...@gmail.com On Aug 31, 2011, at 1:45 AM, Andrew Scott wrote: Thanks Billy, that was my intial reaction. As I had come across that post about the SPF and mail limits etc before. Which is why I thought it might have been a relay issue to begin with, because the mail is not actually sent using accounts email address. It is sent through that account, and sort of made sense that it might be seen as spam. But we are not seeing anything other than the logs in ColdFusion, I have added the SPF records just out of curiosity to see if this might help. But I am not 100% sure that will fix it, will have to wait and see. On Wed, Aug 31, 2011 at 3:35 PM, Billy Cravens bdcrav...@gmail.com wrote: If you can send email, then you haven't hit the limit. Have you identified any patterns (size, to, from, cc, etc) on the messages that are unsuccessful? Billy Cravens bdcrav...@gmail.com -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| 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:347160 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone know how to fix this or why this happening?
Hey Russ, something OT do you do dedicated hosting? If so do you want to ping me offlist, have some questions regarding a dedicated server with Plesk Panel. On Wed, Aug 31, 2011 at 9:03 PM, Russ Michaels r...@michaels.me.uk wrote: did you try wireshark? -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| 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:347161 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone know how to fix this or why this happening?
Wireshark certainly is daunting, but if you start reading the guide it will start to make sense. All you really need to do is set it monitoring, send the email from CF that gets stuck, and look at the traffic that resulted, it will show you the conversation between the 2 servers and if Google did reject the connection, it should show you that. On Wed, Aug 31, 2011 at 12:23 PM, Andrew Scott andr...@andyscott.id.auwrote: Hey Russ, something OT do you do dedicated hosting? If so do you want to ping me offlist, have some questions regarding a dedicated server with Plesk Panel. On Wed, Aug 31, 2011 at 9:03 PM, Russ Michaels r...@michaels.me.uk wrote: did you try wireshark? -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| 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:347162 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
BUG in CF9 Encrypt and Decrypt?
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: AW 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:347163 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: BUG in CF9 Encrypt and Decrypt?
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- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Wednesday, August 31, 2011 2:07 PM To: cf-talk Subject: BUG in CF9 Encrypt and Decrypt? 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: AW 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:347164 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
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 rob...@austin-williams.com 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: AW 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:347165 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: BUG in CF9 Encrypt and Decrypt?
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: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] 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 rob...@austin-williams.com 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: AW 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:347166 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: BUG in CF9 Encrypt and Decrypt?
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 rob...@austin-williams.com 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
Re: BUG in CF9 Encrypt and Decrypt?
Er, remove from the decrypt call. -- Rodney ~| 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:347168 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: BUG in CF9 Encrypt and Decrypt?
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 rob...@austin-williams.com 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: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] 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 rob...@austin-williams.com 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: AW 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:347169 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: BUG in CF9 Encrypt and Decrypt?
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 mgr...@modus.bz 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 rob...@austin-williams.com 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: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] 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 rob...@austin-williams.com 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: AW 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
Re: BUG in CF9 Encrypt and Decrypt?
It's the TRIM functions, remove them This works cfset testval = 6546 cfset inval = encrypt(testval,sn) cfset outval = decrypt(inval,sn) Original cfset testval=6546 cfset inval=#encrypt(trim(testval),sn)# cfset outval=#decrypt(trim(inval),sn)# -- Alan Rother Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org Twitter: @AlanRother ~| 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:347171 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: BUG in CF9 Encrypt and Decrypt?
He could leave the first one if he so chose. It wouldn't be lending to the problem. On Wed, Aug 31, 2011 at 2:50 PM, Alan Rother alan.rot...@gmail.com wrote: It's the TRIM functions, remove them This works cfset testval = 6546 cfset inval = encrypt(testval,sn) cfset outval = decrypt(inval,sn) Original cfset testval=6546 cfset inval=#encrypt(trim(testval),sn)# cfset outval=#decrypt(trim(inval),sn)# -- Alan Rother Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org Twitter: @AlanRother ~| 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:347172 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: BUG in CF9 Encrypt and Decrypt?
Yes, it's the TRIM. Thanks... I'm just so used to using trim I never thought about it trimming spaces when they are part of the encrypted value. But now I'll remember that. 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: AW 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:347173 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: BUG in CF9 Encrypt and Decrypt?
Yes, it's the TRIM. Thanks... I'm just so used to using trim I never thought about it trimming spaces when they are part of the encrypted value. But now I'll remember that. Just a couple of other semi-OT notes... the default encryption algorithm (CFMX_COMPAT) is not very secure by anyone's standards, so I'd always suggest using a more secure algorithm, such as AES, when using encrypt() and decrypt() unless there is a good reason to stay with the default. You can also get around the trim issue by specifying a different value encoding format such as Hex or Base64 (the default is UUEncode which has been known to have quirks like this; the others are more friendly). -Just ~| 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:347174 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm