Skip to main content
woohoowu
Participant
April 12, 2016
Answered

Hash

  • April 12, 2016
  • 3 replies
  • 1110 views

I'm doing hash for the global iris payment, need the sha1 hash,

coldfusion 9 has sha-1, I tried use this to do the hash, but they said the hash is wrong, I don't know what to do, can anyone help?

and how does the coldfusion do the hash, is there anyway I can see the sha-1 function code?

    This topic has been closed for replies.
    Correct answer woohoowu

    HI, just let everyone know that I have fixed the issue, the problem was need change the hashed results to lower case. this way will works with the global iris system

    3 replies

    woohoowu
    woohoowuAuthorCorrect answer
    Participant
    April 14, 2016

    HI, just let everyone know that I have fixed the issue, the problem was need change the hashed results to lower case. this way will works with the global iris system

    WolfShade
    Legend
    April 13, 2016

    Hi, woohoowu‌,

    I dislike sounding trite, but your question is pretty vague.

    I can tell you that SHA-1 is no longer very secure, and you should consider using something much stronger, like SHA-256 or SHA-384 (which CF9 does support).

    Who said that the hash is wrong?  Iris?  Maybe they require something stronger than SHA-1.

    HTH,

    ^_^

    woohoowu
    woohoowuAuthor
    Participant
    April 13, 2016

    Iriis said the hash is wrong

    woohoowu
    woohoowuAuthor
    Participant
    April 13, 2016

    my coldfusion server is 9, MAC-SHA1 is from 10

    WolfShade
    Legend
    April 13, 2016

    According to CF documentation, CF9 does support SHA-256 and SHA-384.

    V/r,

    ^_^