[Seasar-user:20310] Re: How to encrypt the USER & PSWD defined in data source file?

Bin B Gu [E-MAIL ADDRESS DELETED]
2010年 11月 4日 (木) 10:37:33 JST


小林様

顧彬です。

ご解答有難うございます。

Regards,


Bin Gu (顾彬)

                                                                           
             Koichi Kobayashi                                              
             <[E-MAIL ADDRESS DELETED]                                             
             m>                                                         To 
             Sent by:                  [E-MAIL ADDRESS DELETED]           
             seasar-user-bounc                                          cc 
             [E-MAIL ADDRESS DELETED]                                              
                                                                   Subject 
                                       [Seasar-user:20309] Re: How to      
             2010/11/02 20:00          encrypt the USER & PSWD defined  
                                       in	data source file?              
                                                                           
             Please respond to                                             
             [E-MAIL ADDRESS DELETED]                                             
                 asar.org                                                  
                                                                           
                                                                           




小林 (koichik) です.

Date: Tue, 2 Nov 2010 17:52:19 +0900
From: Bin B Gu <[E-MAIL ADDRESS DELETED]>
Subject: [Seasar-user:20306] Re: How to encrypt the USER & PSWD defined in
data source
file?

> >>> example;
>
> >>> <property name="password">
> >>>   @[E-MAIL ADDRESS DELETED]
(BLOWFISH_CONTEXT,
> "KFLfwaFXEacFrNo/G1MMwg==", "UTF-8")
> >>> </property>
>
> 上記の暗号された"KFLfwaFXEacFrNo/G1MMwg=="パースワードはどうやって取得し
ま
> すか?

これは単なる例で、事前に暗号化してあるものを
埋め込むケースを想定しています。
暗号化・復号化は好きなものを使ってください。

> org.seasar.util.crypto.CipherPoolUtilを利用しますか?
> 或は
> あるツールを利用できますか?

OGNL 式でたいていの Java クラスを呼び出すことが
できます。
詳細は OGNL のドキュメントを参照してください。

http://s2container.seasar.org/2.4/ja/ognl.html
http://www.opensymphony.com/ognl/


--
<component name="koichik">
    <property name="fullName">"Koichi Kobayashi"</property>
    <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
    <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
    <property name="twitter">"http://twitter.com/koichik"</property>
</component>

_______________________________________________
Seasar-user mailing list
[E-MAIL ADDRESS DELETED]
https://ml.seasar.org/mailman/listinfo/seasar-user
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20101104/cc99dcbc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: $BL5$7(B
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20101104/cc99dcbc/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic30855.gif
Type: image/gif
Size: 1255 bytes
Desc: $BL5$7(B
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20101104/cc99dcbc/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: $BL5$7(B
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20101104/cc99dcbc/attachment-0002.gif>


Seasar-user メーリングリストの案内