title: OpenSSL [des-ede3-cbc] Decryption php
body: <p>i had to receive some data encrypted with 3DES with shared keys.
  I'm using php7 and openssl_decrypt function, but I'm not able to recreate the result of the example of the documentation sent to me.</p>
  
  <p>The OpenSSL command that create the data sent to me is the following:</p>
  
  <pre><code>openssl enc -des-ede3-cbc -base64 -K 17839778773fadde0066e4578710928988398877bb123789 -iv 00000000 -in D:/in.txt
  
  Example:
  string_encoded: 123456
  data_to_decrypt: Ja79hWTRfBE=
  </code></pre>
  
  <p>I tried to decode "Ja79hWTRfBE=" with an online tool and I successfully obtain "123456".
  (I used this tool: <a href="http://tripledes.online-domain-tools.com/" rel="nofollow noreferrer">http://tripledes.online-domain-tools.com/</a> with input text  (hex) "25aefd8564d17c11", function: 3DES, mode: CBC, key (hex) 17839778773fadde0066e4578710928988398877bb123789, iv: 00000000 )</p>
  
  <p>Below my php code:</p>
  
  <pre><code>$key = "17839778773fadde0066e4578710928988398877bb123789";
  $decData = openssl_decrypt(base64_decode('Ja79hWTRfBE='), 'DES-EDE3-CBC', $key, 0, "00000000");
  var_dump($decData);
  </code></pre>
  
  <p>var_dump return me bool(false).</p>
  
  <p>What am i doing wrong?</p>