<html><body>
<p>小林様<br>
<br>
お疲れ様です。<br>
<br>
ご回答有難うございます。<br>
<br>
<tt>>>> example;<br>
<br>
>>> <property name="password"><br>
>>> @org.seasar.util.crypto.CipherPoolUtil@decryptoText(BLOWFISH_CONTEXT, "KFLfwaFXEacFrNo/G1MMwg==", "UTF-8")<br>
>>> </property></tt><br>
<br>
<tt>上記の暗号された"KFLfwaFXEacFrNo/G1MMwg=="パースワードはどうやって取得しますか?</tt><br>
<br>
<tt><b><font size="4">org.seasar.util.crypto.CipherPoolUtil</font></b></tt><tt>を利用しますか?</tt><br>
<tt>或は</tt><br>
<tt>あるツールを利用できますか?</tt><br>
<br>
<tt>以上です。</tt><br>
<br>
Regards,<br>
<br>
<br>
Bin Gu (顾彬)<br>
<img width="16" height="16" src="cid:1__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Koichi Kobayashi ---2010/11/02 16:59:18---小林 (koichik) です."><font color="#424282">Koichi Kobayashi ---2010/11/02 16:59:18---小林 (koichik) です.</font><br>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:2__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com); background-repeat: no-repeat; " width="40%">
<ul>
<ul>
<ul>
<ul><b><font size="2">Koichi Kobayashi <koichik@gmail.com></font></b><font size="2"> </font><br>
<font size="2">Sent by: seasar-user-bounces@ml.seasar.org</font>
<p><font size="2">2010/11/02 17:00</font>
<table border="1">
<tr valign="top"><td width="168" bgcolor="#FFFFFF"><div align="center"><font size="2">Please respond to<br>
seasar-user@ml.seasar.org</font></div></td></tr>
</table>
</ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">To</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<font size="2">seasar-user@ml.seasar.org</font></td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">cc</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
</td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">Subject</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<font size="2">[Seasar-user:20305] Re: How to encrypt the USER & PSWD defined in        data source file?</font></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img width="1" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:3__=C7BBFD5CDFA3D8488f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<tt>小林 (koichik) です.<br>
<br>
Date: Tue, 2 Nov 2010 15:49:26 +0900<br>
From: Bin B Gu <gubingb@cn.ibm.com><br>
Subject: [Seasar-user:20304] How to encrypt the USER & PSWD defined in data source file?<br>
<br>
> We have a requirement to encrypt the "USER" & "PASSWORD" or at least<br>
> encrypt the "PASSWORD" in that data source definition .<br>
> <br>
> Does the system offer the function of that? If possible, please give us a<br>
> demonstration solution of that.<br>
<br>
1. When you use the JavaEE server, lookup the DataSource<br>
from JNDI.<br>
<br>
</tt><tt><a href="http://s2container.seasar.org/2.4/ja/jdbc.html#GenericApplicationServer">http://s2container.seasar.org/2.4/ja/jdbc.html#GenericApplicationServer</a></tt><tt><br>
<br>
Note, you must use a TransactionManager from the JavaEE server.<br>
<br>
</tt><tt><a href="http://s2container.seasar.org/2.4/ja/transaction.html">http://s2container.seasar.org/2.4/ja/transaction.html</a></tt><tt><br>
<br>
<br>
2. Use the OGNL. <br>
<br>
</tt><tt><a href="http://s2container.seasar.org/2.4/ja/ognl.html">http://s2container.seasar.org/2.4/ja/ognl.html</a></tt><tt><br>
</tt><tt><a href="http://www.opensymphony.com/ognl/">http://www.opensymphony.com/ognl/</a></tt><tt><br>
<br>
example;<br>
<br>
<property name="password"><br>
@org.seasar.util.crypto.CipherPoolUtil@decryptoText(BLOWFISH_CONTEXT, "KFLfwaFXEacFrNo/G1MMwg==", "UTF-8")<br>
</property><br>
<br>
<br>
-- <br>
<component name="koichik"><br>
<property name="fullName">"Koichi Kobayashi"</property><br>
<property name="email">"koichik@gmail.com"</property><br>
<property name="blog">"</tt><tt><a href="http://d.hatena.ne.jp/koichik">http://d.hatena.ne.jp/koichik</a></tt><tt>"</property><br>
<property name="twitter">"</tt><tt><a href="http://twitter.com/koichik">http://twitter.com/koichik</a></tt><tt>"</property><br>
</component><br>
<br>
_______________________________________________<br>
Seasar-user mailing list<br>
Seasar-user@ml.seasar.org<br>
</tt><tt><a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a></tt><tt><br>
</tt><br>
</body></html>