title: How can I get an MD5 hash in ColdFusion?
body: <p>I'm trying to get an MD5 hash of a value in ColdFusion. I tried this code using the <a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_e-g_01.html" rel="noreferrer">Encrypt</a> function<sup>1</sup>:</p>
  
  <pre><code>&lt;cfscript&gt;
  val = 1117;
  md5 = Encrypt(val, 0, "MD5", "Hex");
  &lt;/cfscript&gt;
  </code></pre>
  
  <p>But I get an error:</p>
  
  <blockquote>
    <p>The MD5 algorithm is not supported by the Security Provider you have chosen.</p>
  </blockquote>
  
  <p>How can I choose a different security provider?</p>
  
  <hr>
  
  <p><sup>1</sup> Yes, I know that MD5 isn't an <em>encryption</em> algorithm, but the ColdFusion folks don't seem to know that because they list it as a supported algorithm for the Encrypt function.  <strong>Edit</strong>: I didn't see the built-in <a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions%5Fh-im%5F01.html#1105551" rel="noreferrer">Hash</a> function but I saw the fact that Encrypt lists md5 and sha as supposedly supported algorithms, so I thought (incorrectly it turns out) that this was just how you got a hash in CF.</p>