hash mismatch error while web service call in ColdFusion
These issue occurs since ColdFusion Hash function returned output and the output from PHP will be different in their case (Lower/upper). So for fixing these issues, we have to convert both of them to the same case.
for example, we can use the LCase method of ColdFusion to change the hash output to lowercase before passing it to the web service call
<cfset hashvalue_test=Hash(#hashvalue_test#,"MD5")>
<cfset hashvalue_test=LCase(hashvalue_test)>
for example, we can use the LCase method of ColdFusion to change the hash output to lowercase before passing it to the web service call
<cfset hashvalue_test=Hash(#hashvalue_test#,"MD5")>
<cfset hashvalue_test=LCase(hashvalue_test)>
Comments
Post a Comment