<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: AES Interop Between PHP and Java (Part 2)</title>
	<link>http://propaso.com/blog/?p=7</link>
	<description>What’s Life without Fun?</description>
	<pubDate>Sun, 05 Sep 2010 07:58:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Shane</title>
		<link>http://propaso.com/blog/?p=7#comment-3668</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Wed, 01 Jul 2009 06:18:43 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-3668</guid>
		<description>First of all, I'd like to saya BIG THANK YOU for this blog! You saved me a lot of time and effort!!!

I did face a little trouble compiling the php code you provided though. The error involved something to do with an incorrect IV size. So, i replaced the IV with "" and then added an extra line. It works well like this:

$td = mcrypt_module_open("rijndael-128", "", "cbc", "");
mcrypt_generic_init($td, $key, $iv);

Hope this will helpful to someone. Thanks again!!!</description>
		<content:encoded><![CDATA[<p>First of all, I&#8217;d like to saya BIG THANK YOU for this blog! You saved me a lot of time and effort!!!</p>
<p>I did face a little trouble compiling the php code you provided though. The error involved something to do with an incorrect IV size. So, i replaced the IV with &#8220;&#8221; and then added an extra line. It works well like this:</p>
<p>$td = mcrypt_module_open(&#8221;rijndael-128&#8243;, &#8220;&#8221;, &#8220;cbc&#8221;, &#8220;&#8221;);<br />
mcrypt_generic_init($td, $key, $iv);</p>
<p>Hope this will helpful to someone. Thanks again!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linus</title>
		<link>http://propaso.com/blog/?p=7#comment-3490</link>
		<dc:creator>linus</dc:creator>
		<pubDate>Fri, 22 May 2009 03:33:06 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-3490</guid>
		<description>Hi ndeh,

I have never tried OFB.  As I am not really an expert in encryption.  I will try to understand more.</description>
		<content:encoded><![CDATA[<p>Hi ndeh,</p>
<p>I have never tried OFB.  As I am not really an expert in encryption.  I will try to understand more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ndeh</title>
		<link>http://propaso.com/blog/?p=7#comment-3331</link>
		<dc:creator>ndeh</dc:creator>
		<pubDate>Tue, 28 Apr 2009 19:24:17 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-3331</guid>
		<description>MCRYPT CBC Interoperability seems fine. 
But MCRYPT OFB Does not match !!! with others implementations. 
What is wrong with OFB ?</description>
		<content:encoded><![CDATA[<p>MCRYPT CBC Interoperability seems fine.<br />
But MCRYPT OFB Does not match !!! with others implementations.<br />
What is wrong with OFB ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shimul</title>
		<link>http://propaso.com/blog/?p=7#comment-3127</link>
		<dc:creator>shimul</dc:creator>
		<pubDate>Thu, 26 Feb 2009 11:04:54 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-3127</guid>
		<description>great tutorial

thanks</description>
		<content:encoded><![CDATA[<p>great tutorial</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: runsvalid</title>
		<link>http://propaso.com/blog/?p=7#comment-3091</link>
		<dc:creator>runsvalid</dc:creator>
		<pubDate>Tue, 17 Feb 2009 17:04:14 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-3091</guid>
		<description>thanks for this! my php host doesn't have mcrypt installed, unfortunately, so i went around looking for libraries that didn't require it.

there's http://www.phpaes.com/ as mentioned above but that's not free.  here's one that is:

http://phpseclib.sourceforge.net/documentation/crypt.html#crypt_aes_benchmarks

LGPL licensed and 11x faster than the one at http://www.phpaes.com/.  uses mcrypt if available, php otherwise.</description>
		<content:encoded><![CDATA[<p>thanks for this! my php host doesn&#8217;t have mcrypt installed, unfortunately, so i went around looking for libraries that didn&#8217;t require it.</p>
<p>there&#8217;s <a href="http://www.phpaes.com/" rel="nofollow">http://www.phpaes.com/</a> as mentioned above but that&#8217;s not free.  here&#8217;s one that is:</p>
<p><a href="http://phpseclib.sourceforge.net/documentation/crypt.html#crypt_aes_benchmarks" rel="nofollow">http://phpseclib.sourceforge.net/documentation/crypt.html#crypt_aes_benchmarks</a></p>
<p>LGPL licensed and 11x faster than the one at <a href="http://www.phpaes.com/." rel="nofollow">http://www.phpaes.com/.</a>  uses mcrypt if available, php otherwise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Craig</title>
		<link>http://propaso.com/blog/?p=7#comment-1111</link>
		<dc:creator>Daniel Craig</dc:creator>
		<pubDate>Thu, 24 Jul 2008 16:00:20 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-1111</guid>
		<description>Hi there, I was looking around for a while searching for aes encryption and I happened upon this site and your post regarding AES Interop Between PHP and Java (Part 2), I will definitely this to my aes encryption bookmarks!</description>
		<content:encoded><![CDATA[<p>Hi there, I was looking around for a while searching for aes encryption and I happened upon this site and your post regarding AES Interop Between PHP and Java (Part 2), I will definitely this to my aes encryption bookmarks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fun Things in Life &#187; Blog Archive &#187; AES Interop Between PHP and Java (Part 3)</title>
		<link>http://propaso.com/blog/?p=7#comment-44</link>
		<dc:creator>Fun Things in Life &#187; Blog Archive &#187; AES Interop Between PHP and Java (Part 3)</dc:creator>
		<pubDate>Sat, 06 Oct 2007 11:11:22 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-44</guid>
		<description>[...] Things in Life What’s Life without Fun?      &#171; AES Interop Between PHP and Java (Part 2) AES Interop Between PHP and Java (Part 4) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Things in Life What’s Life without Fun?      &laquo; AES Interop Between PHP and Java (Part 2) AES Interop Between PHP and Java (Part 4) [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linus</title>
		<link>http://propaso.com/blog/?p=7#comment-45</link>
		<dc:creator>linus</dc:creator>
		<pubDate>Sat, 06 Oct 2007 10:54:56 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-45</guid>
		<description>Hi Audrey,

Thanks for informing me, I will update the php.net soon.</description>
		<content:encoded><![CDATA[<p>Hi Audrey,</p>
<p>Thanks for informing me, I will update the php.net soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Audrey</title>
		<link>http://propaso.com/blog/?p=7#comment-46</link>
		<dc:creator>Audrey</dc:creator>
		<pubDate>Tue, 25 Sep 2007 23:48:40 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-46</guid>
		<description>Thank you for these examples. Wanted to let you know that the links from php.net/mcrypt do not work anymore.

Part 1 - Encrypt Using PHP / Decrypt Using Java
http://www.propaso.com/blog/2007/01/27/aes-interop-between-php-and-java/

Part 2 - Encrypt Using Java / Decrypt Using PHP
http://www.propaso.com/blog/2007/03/12/aes-interop-between-php-and-java
-part-2-working-the-other-way-around/</description>
		<content:encoded><![CDATA[<p>Thank you for these examples. Wanted to let you know that the links from php.net/mcrypt do not work anymore.</p>
<p>Part 1 - Encrypt Using PHP / Decrypt Using Java<br />
<a href="http://www.propaso.com/blog/2007/01/27/aes-interop-between-php-and-java/" rel="nofollow">http://www.propaso.com/blog/2007/01/27/aes-interop-between-php-and-java/</a></p>
<p>Part 2 - Encrypt Using Java / Decrypt Using PHP<br />
<a href="http://www.propaso.com/blog/2007/03/12/aes-interop-between-php-and-java" rel="nofollow">http://www.propaso.com/blog/2007/03/12/aes-interop-between-php-and-java</a><br />
-part-2-working-the-other-way-around/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heiner</title>
		<link>http://propaso.com/blog/?p=7#comment-43</link>
		<dc:creator>Heiner</dc:creator>
		<pubDate>Wed, 18 Jul 2007 14:10:16 +0000</pubDate>
		<guid>http://propaso.com/blog/?p=7#comment-43</guid>
		<description>OK, when I compile the source from PART 1 and try to run it my java console throws this errors:

java.lang.ClassCastException: tester cannot be cast to java.applet.Applet
	at sun.applet.AppletPanel.createApplet(Unknown Source)
	at sun.plugin.AppletViewer.createApplet(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
java.lang.ClassCastException: tester cannot be cast to java.applet.Applet
	at sun.applet.AppletPanel.createApplet(Unknown Source)
	at sun.plugin.AppletViewer.createApplet(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

What did I do wrong?
The HelloWorld example from the posted website from linus did work fine...</description>
		<content:encoded><![CDATA[<p>OK, when I compile the source from PART 1 and try to run it my java console throws this errors:</p>
<p>java.lang.ClassCastException: tester cannot be cast to java.applet.Applet<br />
	at sun.applet.AppletPanel.createApplet(Unknown Source)<br />
	at sun.plugin.AppletViewer.createApplet(Unknown Source)<br />
	at sun.applet.AppletPanel.runLoader(Unknown Source)<br />
	at sun.applet.AppletPanel.run(Unknown Source)<br />
	at java.lang.Thread.run(Unknown Source)<br />
java.lang.ClassCastException: tester cannot be cast to java.applet.Applet<br />
	at sun.applet.AppletPanel.createApplet(Unknown Source)<br />
	at sun.plugin.AppletViewer.createApplet(Unknown Source)<br />
	at sun.applet.AppletPanel.runLoader(Unknown Source)<br />
	at sun.applet.AppletPanel.run(Unknown Source)<br />
	at java.lang.Thread.run(Unknown Source)</p>
<p>What did I do wrong?<br />
The HelloWorld example from the posted website from linus did work fine&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
