Difference between DESede and TripleDES for cipher.getInstance() <p>I am trying to get TripleDES encryption working in Java. From the <a href="http://en.wikipedia.org/wiki/Triple_DES">Wikipedia article</a> under <code>Keying Options</code>, I want to use option 1, where <code>All three keys are independent</code>.</p> <p>From the <a href="http://docs.oracle.com/javase/6/docs/api/javax/crypto/Cipher.html">Cipher docs</a> it says to go to the <a href="http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA">reference guide here</a>, but it still isn't clear to me. </p> <p>I am working on getting examples running, and use both of these lines in different projects:</p> <pre><code>Cipher c = Cipher.getInstance("DESede"); Cipher cipher = Cipher.getInstance("TripleDES/ECB/PKCS5Padding"); </code></pre> <p>Both compile fine, so what's the difference? Should I be using one over the other? Do both of these work for using three separate keys?</p>