title: Encrypting in Coldfusion and then decrypting in PHP
body: <p>I have a problem reproducing the same result generated in PHP vs Coldfusion.</p>
  
  <p>In PHP encrypting this way:</p>
  
  <pre><code>&lt;?php
      $key = "$224455@";
      $Valor = "TESTE";
  
      $base = chop(base64_encode(mcrypt_encrypt(MCRYPT_DES, $key, $Valor, MCRYPT_MODE_ECB)));     
  ?&gt;
  </code></pre>
  
  <p>I have the result:</p>
  
  <blockquote>
    <p>TzwRx5Bxoa0=</p>
  </blockquote>
  
  <p>In Coldfusion did so:</p>
  
  <pre><code>&lt;cfset Valor = "TESTE"&gt;
  &lt;cfset Key = "$224455@"&gt;
  &lt;cfset base = Encrypt(Valor,ToBase64(Key),"DES/ECB/PKCS5Padding","BASE64")&gt;
  </code></pre>
  
  <p>Result: </p>
  
  <blockquote>
    <p>qOQnhdxiIKs=</p>
  </blockquote>
  
  <p>What isn't ColdFusion yielding the same value as PHP?</p>
  
  <p>Thank you very much</p>