title: Hash in coldfusion for secure payment gateway
body: <p>I am trying to create a hash password in coldfusion for our secure payment gateway to accept a transaction.</p>
  
  <p>Unfortunately the payment gateway is refusing to accept my generated hash.</p>
  
  <p>The form sends through all the elements of the transaction and sends a generated hash based on five different fields.</p>
  
  <p>In PHP it is-:</p>
  
  <pre><code>&lt;?php
  echo hash('sha256', '
  test_site1234
  GBP
  OrderTotal
  OrderID
  PASSWORD
  ');;
  ?&gt;
  </code></pre>
  
  <p>Am I right in thinking the code in coldfusion should be -:</p>
  
  <pre><code>    &lt;cfset sitesecurity = Hash("test_site1234"&amp;"GBP"&amp;#OrderTotal#&amp;#URL.ThisOrderID#&amp;"PASSWORD", "SHA-256")&gt;
  
  &lt;cfoutput&gt;#sitesecurity#&lt;/cfoutput&gt;
  </code></pre>