• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Translate code from PHP to Coldfusion (SHA1 Encryption)

New Here ,
Feb 03, 2011 Feb 03, 2011

Copy link to clipboard

Copied

Hi everyone,

I have this bit of code in PHP which I want to do in Coldfusion but I have no idea. Can anyone help me out with this one?

Will the IC_Checksum value be the same in Coldfusion as it would be in PHP?

PHP Code:

$IC_CheckSum = SHA1($Encryptioncode . "|" . IC_Currency . "|" . IC_PaymentMethod . "|" . IC_Issuer);

Coldfsuion Code:

???

Thanks!

TOPICS
Advanced techniques

Views

910

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 03, 2011 Feb 03, 2011

Copy link to clipboard

Copied

I see, so you want to hash a value? Have you tried the ambiguously-named hash() function?

Adobe Docs

And yes, two identical strings hashed in an identical algorithm should be identical regardless of the technology that did the work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 04, 2011 Feb 04, 2011

Copy link to clipboard

Copied

LATEST

Great, thanks!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation