title: Encryption and Decryption for Triple DES in PHP Example in ECB Mode
body: <p>Can you please give me a full example of how to create an encryption and decryption in PHP language? I use hexa for the data and the key. I search through google and find that there is one website that match my expectation which is <a href="http://tripledes.online-domain-tools.com/" rel="nofollow noreferrer">here</a>.     </p>
  
  <p><strong>Take this for example:</strong></p>
  
  <p><em>Data:</em> <code>225551100012FFFF</code></p>
  
  <p><em>Key:</em> <code>DC1C1F2B180F85D8D522A75D2354ED149A5B81F198387B51</code></p>
  
  <p>When I decrypt, I got <code>389da227862957c4</code></p>
  
  <p>Thank you in advance!</p>