HMAC Algorithms and Encoding?

2014-09-09 Thread Sandra Clark
I'm working on a Cybersource Authorization form, which has a PHP sample page. I'm trying to use the hmac() function in CF10. However, the documentation on it is lacking to say the least. Parameters Parameter Required\Optional Description message Required The message to transmit. The

Re: HMAC Algorithms and Encoding?

2014-09-09 Thread Dean Lawrence
Sandy, I do believe that you can use any algorithm that the hash function supports. Take a look at the documentation for hash and you will see what options you have. On Tue, Sep 9, 2014 at 8:34 AM, Sandra Clark sclarkli...@gmail.com wrote: I'm working on a Cybersource Authorization form,

RE: HMAC Algorithms and Encoding?

2014-09-09 Thread Sandra Clark
Tried that, I am now getting an error telling me that An error occurred while generating HMAC. Error: Algorithm SHA-256 not available. HASH() documentation is showing SHA-256 *sigh* -Original Message- From: Dean Lawrence [mailto:dean...@gmail.com] Sent: Tuesday, September 9, 2014

RE: HMAC Algorithms and Encoding?

2014-09-09 Thread Scott Stewart
Sandy, what are you trying to encrypt? I ran into a similar issue recently trying to use AES 256 encryption for SFTP On Sep 9, 2014 10:47 AM, Sandra Clark sclarkli...@gmail.com wrote: Tried that, I am now getting an error telling me that An error occurred while generating HMAC. Error:

Re: HMAC Algorithms and Encoding?

2014-09-09 Thread Dean Lawrence
Sandy, Looking at the example in the HMAC() docs, they prefixed the algorithm type with HMAC. Maybe if you try HMACSHA-256, to see if it works? On Tue, Sep 9, 2014 at 10:46 AM, Sandra Clark sclarkli...@gmail.com wrote: Tried that, I am now getting an error telling me that An error occurred

RE: HMAC Algorithms and Encoding?

2014-09-09 Thread Sandra Clark
Thanks I'm trying to encrypt payment information for a group using CyberSource. I found documentation on encrypt() that specified using HMAC-SHAx (where x could be 256). Got the same error. http://help.adobe.com/livedocs/coldfusion/8/htmldocs/help.html?content=funct ions_e-g_01.html. CF10

RE: HMAC Algorithms and Encoding?

2014-09-09 Thread Scott Stewart
I found that there are certain things that ColdFusion doesn't support 256 bit encryption for. SFTP and CFHTTP among others. The solution is to download and install the updated encryption library from Sun. I can post details when I'm not on my phone. On Sep 9, 2014 11:22 AM, Sandra Clark

CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison
I have a script that returns image properties to me (below). After years of using it I've hit some sort of file that crashes it. The error I'm getting is: Numbers of source Raster bands and source color space components do not match null I'm assuming that from a corrupt image

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Cameron Childress
If there is an error in your error handling code you will get a hard error. It may be because you are still attempting to work with the corrupt file in your catch. Change this: cfcatch type=Anycfset get_imginfo.ImgWidth=0cfset get_imginfo.ImgHeight=0/cfcatch To this: cfcatch type=Any/cfcatch

RE: CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison
Thanks, but that had no effect at all. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   F 631.434.7022   http://www.austin-williams.com Blog:

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Money Pit
Any particular reason you are not using cfscript versions of try/catch? Old version of CF? try { code goes here } catch(Any excpt) { code goes here } Given any thought to a different image processor to see if you get a different result? I'm thinking cfimage, assuming you are using at

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Byron Mann
Numbers of source Raster bands and source color space components do not match null Where do you see this error? In the exception logs? Or is the thread just dying and outputting this and not continuing on? Also what CF Version, I know older versions seemed to have many more problems reading

RE: CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison
It's a seven year old site but it's on a CF10 server. Tried using CFIMAGE but it's too slow. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   F

Re: HMAC Algorithms and Encoding?

2014-09-09 Thread Pete Freitag
Try HMACSHA256 for the algorithm see http://cfdocs.org/hmac -- Pete Freitag - Adobe Community Professional http://foundeo.com/ - ColdFusion Consulting Products http://hackmycf.com - Is your ColdFusion Server Secure? http://www.youtube.com/watch?v=ubESB87vl5U - FuseGuard your CFML in 10 minutes

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Money Pit
Looks like the code you are using is bhImgInfo() from cflib, with only very slight changes. There's more than one way to skin that cat: https://gist.github.com/vikaskanani/6256084 looks more robust in the catch department. Maybe a little too robust, but it also separates out the file read

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Russ Michaels
not an answer to your question, but have you tried using ImageMagick or cfx_openimage instead ? I have found both to be more reliable than CF's built in image handling. On Tue, Sep 9, 2014 at 6:56 PM, Robert Harrison rob...@austin-williams.com wrote: It's a seven year old site but it's on a

RE: HMAC Algorithms and Encoding?

2014-09-09 Thread Sandra Clark
Thanks Pete! -Original Message- From: Pete Freitag [mailto:p...@foundeo.com] Sent: Tuesday, September 9, 2014 2:11 PM To: cf-talk Subject: Re: HMAC Algorithms and Encoding? Try HMACSHA256 for the algorithm see http://cfdocs.org/hmac -- Pete Freitag - Adobe Community Professional

Re: HMAC Algorithms and Encoding?

2014-09-09 Thread Carl Von Stetten
Does SHA256 require the Java Cryptography Extension be installed, or is that just SHA512 and above? -Carl V. On 9/9/2014 11:36 AM, Sandra Clark wrote: Thanks Pete! -Original Message- From: Pete Freitag [mailto:p...@foundeo.com] Sent: Tuesday, September 9, 2014 2:11 PM To: cf-talk

Re: HMAC Algorithms and Encoding?

2014-09-09 Thread Scott Stewart
I would take a guess that it does, I needed to do it to get AES 256 to work for SFTP On Sep 9, 2014 4:05 PM, Carl Von Stetten vonner.li...@vonner.net wrote: Does SHA256 require the Java Cryptography Extension be installed, or is that just SHA512 and above? -Carl V. On 9/9/2014 11:36 AM,

Re: Not able to read a RSS feed from a WordPress website

2014-09-09 Thread Chris h
Thanks Dave, If I use a browser, I can see the feeds. Using a feed reader in Google Chrome browser, I can notice the feeds load correctly. Are you using a browser from the machine running CF? No, the machine running CF cannot access the website. I get a message that the request timed

Re: Not able to read a RSS feed from a WordPress website

2014-09-09 Thread Dave Watts
If I use a browser, I can see the feeds. Using a feed reader in Google Chrome browser, I can notice the feeds load correctly. Are you using a browser from the machine running CF? No, the machine running CF cannot access the website. I get a message that the request timed out. But,

Re: Not able to read a RSS feed from a WordPress website

2014-09-09 Thread Russ Michaels
you need to do some basic tests, which your server admin should have already done. for a start ping the domain from the cf server, does this work and do you get the right IP, if not then it is a dns issue. make sure that someone has not created an entry in the local hosts file. On Wed, Sep 10,