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

Translate code from PHP to Coldfusion (SHA1 Encryption)

New Here ,
Feb 03, 2011 Feb 03, 2011

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
1.0K
Translate
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

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.

Translate
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
LATEST

Great, thanks!!

Translate
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