<?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>nick poore &#187; WebSphere</title>
	<atom:link href="http://www.npoore.com/tag/websphere/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.npoore.com</link>
	<description>Notes of a Software Engineer</description>
	<lastBuildDate>Tue, 28 Apr 2009 02:32:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Forget your WebSphere password</title>
		<link>http://www.npoore.com/2009/04/27/forget-your-websphere-password/</link>
		<comments>http://www.npoore.com/2009/04/27/forget-your-websphere-password/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 02:32:28 +0000</pubDate>
		<dc:creator>npoore</dc:creator>
				<category><![CDATA[IBM]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[WebSphere]]></category>

		<guid isPermaLink="false">http://www.npoore.com/?p=53</guid>
		<description><![CDATA[Call it hacking if you want but here is an example where it may be useful when it comes to WebSphere.  WebSphere uses a XOR-encrypted password system that isn&#8217;t really meant for rock hard security but more for not storing plain text passwords in configuration files.  In my average workday I could easily be using [...]]]></description>
			<content:encoded><![CDATA[<p>Call it hacking if you want but here is an example where it may be useful when it comes to WebSphere.  WebSphere uses a XOR-encrypted password system that isn&#8217;t really meant for rock hard security but more for not storing plain text passwords in configuration files.  In my average workday I could easily be using 5 different WebSphere servers for test/development in 4 different hosting environments.  So to decrypt the XOR-encrypted password use these commands.</p>
<p><strong>WebSphere 5.x</strong><br />
&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordDecoder {xor}LDo8LTor<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
<p><strong>WebSphere 6.0.x  (this also works with 6.1.x)</strong></p>
<p>&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar::ras.jar:wsexception.jar:bootstrap.jar:emf.jar:ffdc.jar com.ibm.ws.security.util.PasswordEncoder {xor}LDo8LTor<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
<p>Here are some other WebSphere 6.1.x commands I found but haven&#8217;t tested.</p>
<p>C:\IBM\WAS61\AppServer\bin\ProfileManagement\plugins\com.ibm.websphere.v61_6.1.200&gt;C:\IBM\WAS61\AppServer\java\bin\java -cp ws_runtime.jar com.ibm.ws.security.util.PasswordDecoder {xor}LDo8LTor<br />
encoded password == &#8220;{xor}LDo8LTor&#8221;, decoded password == &#8220;secret&#8221;</p>
<p>To encrypt</p>
<p><strong>WebSphere 5.x</strong></p>
<p>&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordEncoder secret<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
<p><strong>WebSphere 6.0.x</strong></p>
<p>&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar::ras.jar:wsexception.jar:bootstrap.jar:emf.jar:ffdc.jar com.ibm.ws.security.util.PasswordEncoder secret<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npoore.com/2009/04/27/forget-your-websphere-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
