I have an API I need to work with. No problem converting most to ColdFusion,
but two strings I'm unsure of:
1. The PHP encode format is:
$signature = base64_encode(hash_hmac('sha256', $mystring, true));
I think in CF the equivalent would be:
1) No, that wont work. toBase64(hash('testing', SHA-256)) gets you close
but hash_hmac is a very specific PHP function in what it does. Is there a way
you can use a different method to generate that signature or are you trying to
maintain backward compatibility?
Alternately, heres a UDF
2. The epoch is GMT and using the ColdFusion now() function returns local
time, not GMT. This is a more accurate epoch value:
left(GetTickCount(), 10)
On Fri, Jan 16, 2015 at 1:04 PM, Jon Clausen jon_clau...@silowebworks.com
wrote:
1) No, that wonât work. toBase64(hash('testing',
And itâs simpler, to boot! What he said. :)
On Jan 16, 2015, at 1:19 PM, Michael Dinowitz mdino...@houseoffusion.com
wrote:
2. The epoch is GMT and using the ColdFusion now() function returns local
time, not GMT. This is a more accurate epoch value:
left(GetTickCount(), 10)
On
Thanks. I got through that one. Now I'm trying to set up the call rail API.
Anyone done that in CF before?
Thanks
Robert Harrison
Full Stack Developer
AIMG
rharri...@aimg.com
Main Office: 704-321-1234 ext.121
Direct Line: 516-302-4345
www.aimg.com
The Y2K in me says this would be better ;-)
int(getTickCount()/1000)
On Fri, Jan 16, 2015 at 1:19 PM, Michael Dinowitz
mdino...@houseoffusion.com wrote:
2. The epoch is GMT and using the ColdFusion now() function returns local
time, not GMT. This is a more accurate epoch value:
Hi, folks!
I'll highly appreciate if somebody can send me URL of the page where I
can read performance comparison of the both techniques, of course if
somebody has it own experience in such things then I'll get to know it
with increased attention!
P.S. I'm a bit abashed because of my English.
:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:15 PM
To: CF-Talk
Subject: PHP vs. Cold Fusion
Hi, folks!
I'll highly appreciate if somebody can send me URL of the page where I
can read performance comparison of the both techniques, of course if
somebody has it own experience
is really up to you.
- Original Message -
From: "Alex Puritche" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, February 28, 2001 2:15 PM
Subject: PHP vs. Cold Fusion
Hi, folks!
I'll highly appreciate if somebody can send me URL of the pa
configurable mail server
Get your free copy of iMS POST-SE Server from CoolFusion!
- Original Message -
From: "Alex Puritche" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, February 28, 2001 3:15 PM
Subject: PHP vs. Cold Fusion
Hi, folks!
I'
10 matches
Mail list logo