<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UKoom &#187; Security</title>
	<atom:link href="http://www.ukoom.com/tag/security/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ukoom.com</link>
	<description>Documentum, SharePoint, Alfresco, ECM...</description>
	<lastBuildDate>Thu, 13 May 2010 00:21:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Encryt file in java</title>
		<link>http://www.ukoom.com/encryt-file-in-java.htm</link>
		<comments>http://www.ukoom.com/encryt-file-in-java.htm#comments</comments>
		<pubDate>Thu, 13 Nov 2008 14:12:02 +0000</pubDate>
		<dc:creator>Rexleed</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=91</guid>
		<description><![CDATA[We can use [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">We can use both Key and Password to encryt file.</p>
<ol style="margin-top: 0cm;" type="1">
<li class="MsoNormal">Use      the Key<span> </span>I rewrited the DESEncryptUtil      got from internet.</li>
<li class="MsoNormal">PBE<span> </span>the third party utility &#8211; Jasypt      is used to encrypt/decryt the file.</li>
</ol>
<p class="MsoNormal">Some useful references:</p>
<p class="MsoNormal"><em> Key storage and Password-Based Encryption in Java Security Handbook</em></p>
<p class="MsoNormal" style="text-indent: 12pt;"><strong><em><span> </span></em></strong><span style="font-size: 10pt;">Keys can be stored in a number of ways: you can write them down or print them, you can store them ina file, you can store them in a smart card, or you can store them in a tamperproof electronic keying </span><span style="font-size: 10pt;"> </span><span style="font-size: 10pt;">device.<span> </span><strong>The obvious countermeasure to storing your keys on dick is to encrypt them. But </strong></span><span style="font-size: 10pt;"> </span><span style="font-size: 10pt;"><strong>this solution tends to be a circular one.</strong> What do you do with the key that you used to encrypt  the keys that are stored on your computer? The answer to this dilemma is to use password-based encryption(PBE) .</span><em></em></p>
<p class="MsoNormal" style="text-indent: 12pt;"><em>The javax.crypto.spec Package of Java in a nutshell</em></p>
<p class="MsoNormal" style="margin-left: 12pt;"><em>Generating a Key from a Password </em><em><span style="font-size: 11pt;"><a href="http://blogs.msdn.com/shawnfa/archive/2004/04/14/113514.aspx"><span style="text-decoration: none; color: #000000;">http://blogs.msdn.com/shawnfa/archive/2004/04/14/113514.aspx</span></a></span></em></p>
<p class="MsoNormal" style="margin-left: 12pt;"><em> </em></p>
<p class="MsoNormal"><em><span style="font-size: 10pt;">Please feel free to contact me if you want those two utility files.</span></em></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/encryt-file-in-java.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
