<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Java RSA Encryption: An example</title>
	<atom:link href="http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/</link>
	<description>programmer, student, boyfriend, dreamer, in love, photographer</description>
	<lastBuildDate>Tue, 09 Mar 2010 21:40:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mostrapotski</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-26547</link>
		<dc:creator>Mostrapotski</dc:creator>
		<pubDate>Mon, 30 Nov 2009 10:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-26547</guid>
		<description>CSStudent: by sending a pigeon ! Or by using symmetric key, to exchange the asymmetric key... It roughly depends of the network structure you re dealing with. 

Thx for the small tuto, very useful !</description>
		<content:encoded><![CDATA[<p>CSStudent: by sending a pigeon ! Or by using symmetric key, to exchange the asymmetric key&#8230; It roughly depends of the network structure you re dealing with. </p>
<p>Thx for the small tuto, very useful !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSStudent</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-26311</link>
		<dc:creator>CSStudent</dc:creator>
		<pubDate>Tue, 06 Oct 2009 02:57:49 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-26311</guid>
		<description>thats nice, except where do we magically get KeyPair to appear on the other computer?</description>
		<content:encoded><![CDATA[<p>thats nice, except where do we magically get KeyPair to appear on the other computer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jihad</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-26307</link>
		<dc:creator>Jihad</dc:creator>
		<pubDate>Mon, 05 Oct 2009 18:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-26307</guid>
		<description>i think there is still something missing in your code 
i&#039;ve tried to apply it but no matter what i do it get this 
&quot;java.security.InvalidKeyException: No installed provider supports this key: (null)&quot;
i&#039;ve tried to use the The Bouncy Castle Crypto APIs to get a provider 
but still it did not work !
any ideas ?</description>
		<content:encoded><![CDATA[<p>i think there is still something missing in your code<br />
i&#8217;ve tried to apply it but no matter what i do it get this<br />
&#8220;java.security.InvalidKeyException: No installed provider supports this key: (null)&#8221;<br />
i&#8217;ve tried to use the The Bouncy Castle Crypto APIs to get a provider<br />
but still it did not work !<br />
any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajeshkannan</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-22019</link>
		<dc:creator>rajeshkannan</dc:creator>
		<pubDate>Sat, 04 Apr 2009 07:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-22019</guid>
		<description>Hai Andreas,
how to encrypt huge number of text using RSA with keypair generator?
can i get source code for this?</description>
		<content:encoded><![CDATA[<p>Hai Andreas,<br />
how to encrypt huge number of text using RSA with keypair generator?<br />
can i get source code for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederic</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-19198</link>
		<dc:creator>Frederic</dc:creator>
		<pubDate>Thu, 08 Jan 2009 17:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-19198</guid>
		<description>Thk for the example.  I did not know about the US Cryptographic Export Laws.  

2 notes : 

1- There&#039;s no mistake as Andreas explained, only some code portion missing (that was not needed).  

2- String message = (String) myEncyptedMessage.getObject(dec); (without r) - or refactor the object.</description>
		<content:encoded><![CDATA[<p>Thk for the example.  I did not know about the US Cryptographic Export Laws.  </p>
<p>2 notes : </p>
<p>1- There&#8217;s no mistake as Andreas explained, only some code portion missing (that was not needed).  </p>
<p>2- String message = (String) myEncyptedMessage.getObject(dec); (without r) &#8211; or refactor the object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renato Back</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-13280</link>
		<dc:creator>Renato Back</dc:creator>
		<pubDate>Thu, 04 Dec 2008 04:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-13280</guid>
		<description>I believe there&#039;s a mistake and the following line

String message = (String)test.getObject(myEncyptedMessage);

Should actually be 

String message = (String) myEncryptedMessage.getObject(dec);

Thanks for the tutorial, it really helps out.

Cheers!</description>
		<content:encoded><![CDATA[<p>I believe there&#8217;s a mistake and the following line</p>
<p>String message = (String)test.getObject(myEncyptedMessage);</p>
<p>Should actually be </p>
<p>String message = (String) myEncryptedMessage.getObject(dec);</p>
<p>Thanks for the tutorial, it really helps out.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mic</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-1255</link>
		<dc:creator>Mic</dc:creator>
		<pubDate>Thu, 01 May 2008 10:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-1255</guid>
		<description>I used this approach for encrypting files:
http://www-users.york.ac.uk/~mal503/lore/pkencryption.htm

It uses RSA to encrypt an AES shared key which is then used to encrypt the files. Not sure if it&#039;s the best way of doing things, but it works ;)</description>
		<content:encoded><![CDATA[<p>I used this approach for encrypting files:<br />
<a href="http://www-users.york.ac.uk/~mal503/lore/pkencryption.htm" rel="nofollow">http://www-users.york.ac.uk/~mal503/lore/pkencryption.htm</a></p>
<p>It uses RSA to encrypt an AES shared key which is then used to encrypt the files. Not sure if it&#8217;s the best way of doing things, but it works <img src='http://andreas.louca.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cp</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-1249</link>
		<dc:creator>cp</dc:creator>
		<pubDate>Wed, 30 Apr 2008 19:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-1249</guid>
		<description>File, mpravo sigxaritira oti kalutero gia to mellon...</description>
		<content:encoded><![CDATA[<p>File, mpravo sigxaritira oti kalutero gia to mellon&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Louca</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-1123</link>
		<dc:creator>Andreas Louca</dc:creator>
		<pubDate>Tue, 08 Apr 2008 21:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-1123</guid>
		<description>Well, SealedObject is not designed to be used in encrypting files. It can be used to encrypt a String with the contents of a file, but bear in mind that the RSA Encryption has the size limitation you mentioned. You can always use a symmetric Cipher to encrypt objects longer than that.

If you want to encrypt a file however, Java provides &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/CipherOutputStream.html&quot; rel=&quot;nofollow&quot;&gt;CipherOutputStream&lt;/a&gt; for writing and &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/CipherInputStream.html&quot; rel=&quot;nofollow&quot;&gt;CipherInputStream&lt;/a&gt; for reading encrypted data from Streams that can be either File or network streams. 

CipherOutputStream class takes as parameters an OutputStream (with the destination file) and Cipher (like the above) and encrypts the output before writing to the file.

CipherInputStream can be used to read that file, providing that the same Cipher algorithm and key is used.</description>
		<content:encoded><![CDATA[<p>Well, SealedObject is not designed to be used in encrypting files. It can be used to encrypt a String with the contents of a file, but bear in mind that the RSA Encryption has the size limitation you mentioned. You can always use a symmetric Cipher to encrypt objects longer than that.</p>
<p>If you want to encrypt a file however, Java provides <a href="http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/CipherOutputStream.html" rel="nofollow">CipherOutputStream</a> for writing and <a href="http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/CipherInputStream.html" rel="nofollow">CipherInputStream</a> for reading encrypted data from Streams that can be either File or network streams. </p>
<p>CipherOutputStream class takes as parameters an OutputStream (with the destination file) and Cipher (like the above) and encrypts the output before writing to the file.</p>
<p>CipherInputStream can be used to read that file, providing that the same Cipher algorithm and key is used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soul_krasty</title>
		<link>http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/comment-page-1/#comment-1121</link>
		<dc:creator>soul_krasty</dc:creator>
		<pubDate>Tue, 08 Apr 2008 08:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://andreas.louca.org/?p=34#comment-1121</guid>
		<description>how about is i want to encrypt a file..i have read some article saying that RSA can&#039;t encrypt file that are more than 117 bytes. can you explain more on sealobject being used with encrypting small file.</description>
		<content:encoded><![CDATA[<p>how about is i want to encrypt a file..i have read some article saying that RSA can&#8217;t encrypt file that are more than 117 bytes. can you explain more on sealobject being used with encrypting small file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
