<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4376635023251425754.post1877056091303501086..comments</id><updated>2010-08-24T14:44:25.883-07:00</updated><category term='IFD'/><category term='TripleDES'/><category term='Visual Studio'/><category term='Pdf'/><category term='Podcast'/><category term='Encryption'/><category term='ASPX'/><category term='ApplicationState'/><category term='Tags'/><category term='ASP.NET'/><category term='Count Down'/><category term='Productivity'/><category term='User Controls'/><category term='IQueryable'/><category term='external configuration files'/><category term='Adobe Acrobat'/><category term='DES'/><category term='Bookmark'/><category term='Countdown'/><category term='Mp3'/><category term='Merging Mp3'/><category term='web.config'/><category term='Coding'/><category term='Plugin'/><category term='CRM'/><category term='Combining Mp3'/><category term='State Repository'/><category term='Code Generatation'/><category term='Session'/><category term='Java'/><category term='Open Source'/><category term='batch'/><category term='C#'/><category term='Development'/><category term='external config files'/><category term='jobs'/><category term='sql'/><category term='Strongly Typed'/><category term='Zune'/><category term='Linq'/><category term='Microsoft CRM'/><category term='Authentication'/><category term='ItextSharp'/><category term='Asynchronous'/><category term='JavaScript'/><category term='app.config'/><category term='.NET'/><category term='Impersonation'/><category term='Excel'/><title type='text'>Comments on BlueSam Blog: Triple DES Encryption implementation compatible be...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.bluesam.com/feeds/1877056091303501086/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html'/><author><name>Sam Walker</name><uri>http://www.blogger.com/profile/11223815573836337561</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-1052799513007132174</id><published>2010-08-24T14:44:25.883-07:00</published><updated>2010-08-24T14:44:25.883-07:00</updated><title type='text'>Hi Sam,

My knowledge on the whole encryption bit ...</title><content type='html'>Hi Sam,&lt;br /&gt;&lt;br /&gt;My knowledge on the whole encryption bit is very poor. We recieve a java generated Triple DES key from a third party. I want to encrypt/decrypt the key in our VB.NET app. Do we have to modify both the .NET and the Java code?&lt;br /&gt;Please pardon my ignorance but vould you please tell me how do i use the key in my app.&lt;br /&gt;&lt;br /&gt;Like when i use the key in this line of code:&lt;br /&gt;Dim desTransform As ICryptoTransform = desCrypto.CreateEncryptor(EncryptKey(Key), EncryptIV(IV))&lt;br /&gt;&lt;br /&gt;I get the error: &amp;#39;specified key is not a valid size for this algorithm&amp;#39;.&lt;br /&gt;&lt;br /&gt;Could you show me how to use the key here.&lt;br /&gt;&lt;br /&gt;Thanks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/1052799513007132174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/1052799513007132174'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1282686265883#c1052799513007132174' title=''/><author><name>Anu</name><uri>http://www.blogger.com/profile/10447855945129791290</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp2.blogger.com/_opW1HasA1tM/R5JLitrEAFI/AAAAAAAAAAQ/iLbsoS0CUiY/S220/me.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1452752165'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-7442513213414662451</id><published>2010-07-05T18:01:20.192-07:00</published><updated>2010-07-05T18:01:20.192-07:00</updated><title type='text'>Thank you very much.  This really helped me out.</title><content type='html'>Thank you very much.  This really helped me out.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7442513213414662451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7442513213414662451'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1278378080192#c7442513213414662451' title=''/><author><name>Bryan</name><uri>http://www.blogger.com/profile/05178957760552114965</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1183014901'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-2417698146168372579</id><published>2010-05-06T19:44:48.289-07:00</published><updated>2010-05-06T19:44:48.289-07:00</updated><title type='text'>hi. is it possible in both .net and java sides so ...</title><content type='html'>hi. is it possible in both .net and java sides so create a key and IV according to our own preferred string?&lt;br /&gt;&lt;br /&gt;rather than be restricted to 24 bytes and 8 bytes respectively?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/2417698146168372579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/2417698146168372579'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1273200288289#c2417698146168372579' title=''/><author><name>chitgoks</name><uri>http://www.blogger.com/profile/04793105001370849590</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_Q6T3AXQat4M/R6u7eMpojII/AAAAAAAAAAM/IUcRL0BcV34/S220/gai.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-623528910'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-5119077525613330573</id><published>2010-02-04T00:26:18.370-08:00</published><updated>2010-02-04T00:26:18.370-08:00</updated><title type='text'>have modified the java code somewhat, but it works...</title><content type='html'>have modified the java code somewhat, but it works fine for me, I encrypting the string in .net and decrypting it on java... hope it&amp;#39;ll be helpful for you.&lt;br /&gt;&lt;br /&gt;package com.bay.bizlogic;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * Created by Nitin Gaur.&lt;br /&gt; * User: admin&lt;br /&gt; * Date: 4 Feb, 2010&lt;br /&gt; * Time: 12:46:23 PM&lt;br /&gt; * To change this template use File | Settings | File Templates.&lt;br /&gt; */&lt;br /&gt;import javax.crypto.Cipher;&lt;br /&gt;import javax.crypto.spec.IvParameterSpec;&lt;br /&gt;import javax.crypto.spec.SecretKeySpec;&lt;br /&gt;&lt;br /&gt;public class TripleDES {&lt;br /&gt;    private String key;&lt;br /&gt;    private String initializationVector;&lt;br /&gt;    public TripleDES(String key, String initializationVector)&lt;br /&gt;    {&lt;br /&gt;        this.key = key;&lt;br /&gt;        this.initializationVector = initializationVector;&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public String encryptText(String plainText) throws Exception{&lt;br /&gt;    //----  Use specified 3DES key and IV from other source --------------&lt;br /&gt;      byte[] plaintext = plainText.getBytes();&lt;br /&gt;      byte[] tdesKeyData = key.getBytes();&lt;br /&gt;&lt;br /&gt;    //  byte[] myIV = initializationVector.getBytes();&lt;br /&gt;&lt;br /&gt;      Cipher c3des = Cipher.getInstance(&amp;quot;DESede/CBC/PKCS5Padding&amp;quot;);&lt;br /&gt;      SecretKeySpec    myKey = new SecretKeySpec(tdesKeyData, &amp;quot;DESede&amp;quot;);&lt;br /&gt;      IvParameterSpec ivspec = new IvParameterSpec(initializationVector.getBytes());&lt;br /&gt;&lt;br /&gt;      c3des.init(Cipher.ENCRYPT_MODE, myKey, ivspec);&lt;br /&gt;      byte[] cipherText = c3des.doFinal(plaintext);&lt;br /&gt;&lt;br /&gt;      return new sun.misc.BASE64Encoder().encode(cipherText);&lt;br /&gt;    }&lt;br /&gt;    public String decryptText(String cipherText)throws Exception{&lt;br /&gt;      byte[] encData = new sun.misc.BASE64Decoder().decodeBuffer(cipherText);&lt;br /&gt;      Cipher decipher = Cipher.getInstance(&amp;quot;DESede/CBC/PKCS5Padding&amp;quot;);&lt;br /&gt;      byte[] tdesKeyData = key.getBytes();&lt;br /&gt;      SecretKeySpec    myKey = new SecretKeySpec(tdesKeyData, &amp;quot;DESede&amp;quot;);&lt;br /&gt;      IvParameterSpec ivspec = new IvParameterSpec(initializationVector.getBytes());&lt;br /&gt;      decipher.init(Cipher.DECRYPT_MODE, myKey, ivspec);&lt;br /&gt;      byte[] plainText = decipher.doFinal(encData);&lt;br /&gt;      return new String(plainText);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks...&lt;br /&gt;India</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/5119077525613330573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/5119077525613330573'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1265271978370#c5119077525613330573' title=''/><author><name>Author Nitin</name><uri>http://www.blogger.com/profile/18226091921545575503</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_NkWyaUdUrT4/SitPvCV8sqI/AAAAAAAAAvc/81pCINoXaMs/S220/DSCN0639.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1900542541'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-6511222239383271424</id><published>2010-01-05T09:42:20.720-08:00</published><updated>2010-01-05T09:42:20.720-08:00</updated><title type='text'>Sam,
THANK YOU VERY MUCH!!! This is 75% of what I ...</title><content type='html'>Sam,&lt;br /&gt;THANK YOU VERY MUCH!!! This is 75% of what I have been looking high and low for. Can you please post the Java Decryptor function for the remaining 25% of the functionality I need??? I am not a java developer, so am having a hard time with this.&lt;br /&gt;Thanks a lot for this great post...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/6511222239383271424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/6511222239383271424'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1262713340720#c6511222239383271424' title=''/><author><name>Mark D</name><uri>http://www.blogger.com/profile/03739281831058609624</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://farm2.static.flickr.com/1382/1394064027_3c4fc25fe8.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-693586514'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-7190239193562923067</id><published>2009-10-14T23:03:37.132-07:00</published><updated>2009-10-14T23:03:37.132-07:00</updated><title type='text'>So Many Thank Thank Thank.

Very good topic</title><content type='html'>So Many Thank Thank Thank.&lt;br /&gt;&lt;br /&gt;Very good topic</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7190239193562923067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7190239193562923067'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1255586617132#c7190239193562923067' title=''/><author><name>Mr.Madoogun.Com</name><uri>http://www.blogger.com/profile/01185080556217628461</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.madoogun.com/pee.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-355145561'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-6069182448768295222</id><published>2009-08-27T12:30:15.880-07:00</published><updated>2009-08-27T12:30:15.880-07:00</updated><title type='text'>Sam - thanks, I found it in the article you origin...</title><content type='html'>Sam - thanks, I found it in the article you originally referenced.  The problem is that Java requires a 24 byte key; so I needed to take the 16 byte password, and pad with the first 8 bytes of the password.  now it works like a champ!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/6069182448768295222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/6069182448768295222'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1251401415880#c6069182448768295222' title=''/><author><name>cawineguy</name><uri>http://www.blogger.com/profile/06501672351089996144</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1563535536'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-6470268152865806883</id><published>2009-08-26T21:29:41.651-07:00</published><updated>2009-08-26T21:29:41.651-07:00</updated><title type='text'>cawineguy, I&amp;#39;m afraid I&amp;#39;m not much of a ja...</title><content type='html'>cawineguy, I&amp;#39;m afraid I&amp;#39;m not much of a java expert, so I&amp;#39;m afraid I can&amp;#39;t tell you what&amp;#39;s going on right off the bat.  I&amp;#39;ll take a look at it and get back to you if I find anything.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/6470268152865806883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/6470268152865806883'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1251347381651#c6470268152865806883' title=''/><author><name>Sam Walker</name><uri>http://www.blogger.com/profile/11223815573836337561</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2140136552'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-2908618804769225292</id><published>2009-08-26T11:38:11.602-07:00</published><updated>2009-08-26T11:38:11.602-07:00</updated><title type='text'>When I found this post I got excited, because this...</title><content type='html'>When I found this post I got excited, because this is precisely the problem I&amp;#39;m trying to solve, except the other direction.  Here is the .NET code I want to convert to java:&lt;br /&gt;Decryptor dec = new Decryptor(EncryptionAlgorithm.TripleDes);&lt;br /&gt;&lt;br /&gt;dec.IV = Encoding.ASCII.GetBytes(ssIV);&lt;br /&gt;byte[] key = Encoding.ASCII.GetBytes(ssKEY);&lt;br /&gt;&lt;br /&gt;byte[] plainText = dec.Decrypt(Convert.FromBase64String(encryptedCCNumber), key);&lt;br /&gt;return Encoding.ASCII.GetString(plainText);&lt;br /&gt;&lt;br /&gt;The issue is that the key is 16 characters, and that is an illegal length for the java decryption.  Am I using the wrong algorithm on the java side?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/2908618804769225292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/2908618804769225292'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1251311891602#c2908618804769225292' title=''/><author><name>cawineguy</name><uri>http://www.blogger.com/profile/06501672351089996144</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1563535536'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-3640252012296355168</id><published>2009-08-14T08:19:08.179-07:00</published><updated>2009-08-14T08:19:08.179-07:00</updated><title type='text'>Yann, I haven&amp;#39;t experienced this problem befor...</title><content type='html'>Yann, I haven&amp;#39;t experienced this problem before, but I&amp;#39;ll take a look.  In the mean time, if you end up figuring out the solution, make sure you post it.  Thanks!&lt;br /&gt;&lt;br /&gt;Sam</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/3640252012296355168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/3640252012296355168'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1250263148179#c3640252012296355168' title=''/><author><name>Sam Walker</name><uri>http://www.blogger.com/profile/11223815573836337561</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2140136552'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-3039281212592223455</id><published>2009-08-14T06:17:05.572-07:00</published><updated>2009-08-14T06:17:05.572-07:00</updated><title type='text'>Sorry, in fact it&amp;#39;s not due to to the &amp;quot;/&amp;...</title><content type='html'>Sorry, in fact it&amp;#39;s not due to to the &amp;quot;/&amp;quot;&lt;br /&gt;&lt;br /&gt;I tried to encrypt this random string &amp;quot;AeRTYhgFD678de4&amp;quot; with these key &amp;quot;4d89g13j4j91j27c582ji693&amp;quot; and iv &amp;quot;zerocool&amp;quot;.&lt;br /&gt; &lt;br /&gt;In Java i got : cANU9X90FvhHP5wH3t9VMQ==&lt;br /&gt;&lt;br /&gt;In C# I got:cANU9X90FvhHgZwH3t9VMQ==&lt;br /&gt;&lt;br /&gt;So I can&amp;#39;t decrypt the encrypted text from java.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/3039281212592223455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/3039281212592223455'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1250255825572#c3039281212592223455' title=''/><author><name>Yann</name><uri>http://www.blogger.com/profile/03405226389564173404</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-710839979'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-1841295947488895912</id><published>2009-08-14T05:24:37.482-07:00</published><updated>2009-08-14T05:24:37.482-07:00</updated><title type='text'>Hi Sam, I&amp;#39;ve tried your code and it seems to w...</title><content type='html'>Hi Sam, I&amp;#39;ve tried your code and it seems to work excepted when you get an encryted text from java wi th at least one  &amp;quot;/&amp;quot; . The C# method can&amp;#39;t decrypt the message.Have you already face to this problem ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/1841295947488895912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/1841295947488895912'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1250252677482#c1841295947488895912' title=''/><author><name>Yann</name><uri>http://www.blogger.com/profile/03405226389564173404</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-710839979'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-7660237101449148795</id><published>2009-08-04T09:28:40.300-07:00</published><updated>2009-08-04T09:28:40.300-07:00</updated><title type='text'>From first glance, it looks like an encoding issue...</title><content type='html'>From first glance, it looks like an encoding issue, but I&amp;#39;d have to see your code to make a better guess.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7660237101449148795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7660237101449148795'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1249403320300#c7660237101449148795' title=''/><author><name>Sam Walker</name><uri>http://www.blogger.com/profile/11223815573836337561</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2140136552'/></entry><entry><id>tag:blogger.com,1999:blog-4376635023251425754.post-7659556588820677014</id><published>2009-08-04T09:05:28.594-07:00</published><updated>2009-08-04T09:05:28.594-07:00</updated><title type='text'>Hey great info, I am also dealing with this proble...</title><content type='html'>Hey great info, I am also dealing with this problem, but I am doing it from C# Desktop application to a Java servlet, so I need to decrypt on the Java side, I tried to replicate the C# code for decrypt in Java but I only get a 40% of the message decrypted fine, any idea?&lt;br /&gt;&lt;br /&gt;For example I sent this as the text to encrypt &amp;quot;_2G4WS52M6W1459365&amp;quot; and I get this &amp;quot;_2G4WS52J���iS�5_2G4WS52J���iS�5&amp;quot;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7659556588820677014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4376635023251425754/1877056091303501086/comments/default/7659556588820677014'/><link rel='alternate' type='text/html' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html?showComment=1249401928594#c7659556588820677014' title=''/><author><name>strokov</name><uri>http://www.blogger.com/profile/09581465909273661704</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.bluesam.com/2009/07/triple-des-encryption-implementation.html' ref='tag:blogger.com,1999:blog-4376635023251425754.post-1877056091303501086' source='http://www.blogger.com/feeds/4376635023251425754/posts/default/1877056091303501086' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-22361577'/></entry></feed>
