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

Bin B Gu [E-MAIL ADDRESS DELETED]
2010年 11月 2日 (火) 17:52:19 JST


СÁÖ˜”

¤ªÆ£¤ì˜”¤Ç¤¹¡£

¤´»Ø´ðÓÐëy¤¦¤´¤¶¤¤¤Þ¤¹¡£

>>> example;

>>> <property name="password">
>>>   @[E-MAIL ADDRESS DELETED](BLOWFISH_CONTEXT,
"KFLfwaFXEacFrNo/G1MMwg==", "UTF-8")
>>> </property>

ÉÏÓ›¤Î°µºÅ¤µ¤ì¤¿"KFLfwaFXEacFrNo/G1MMwg=="¥Ñ©`¥¹¥ï©`¥É¤Ï¤É¤¦¤ä¤Ã¤ÆÈ¡µÃ¤·¤Þ
¤¹¤«£¿

org.seasar.util.crypto.CipherPoolUtil¤òÀûÓä·¤Þ¤¹¤«£¿
賜は
¤¢¤ë¥Ä©`¥ë¤òÀûÓäǤ­¤Þ¤¹¤«£¿

參貧です。

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:20305] Re: How to      
             2010/11/02 17: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 15:49:26 +0900
From: Bin B Gu <[E-MAIL ADDRESS DELETED]>
Subject: [Seasar-user:20304] How to encrypt the USER & PSWD defined in data
source file?

> We have a requirement to encrypt the "USER" & "PASSWORD" or at least
> encrypt the "PASSWORD" in that data source definition .
>
> Does the system offer the function of that? If possible, please give us a
> demonstration solution of that.

1. When you use the JavaEE server, lookup the DataSource
   from JNDI.

http://s2container.seasar.org/2.4/ja/jdbc.html#GenericApplicationServer

Note, you must use a TransactionManager from the JavaEE server.

http://s2container.seasar.org/2.4/ja/transaction.html


2. Use the OGNL.

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

example;

<property name="password">
  @[E-MAIL ADDRESS DELETED](BLOWFISH_CONTEXT,
"KFLfwaFXEacFrNo/G1MMwg==", "UTF-8")
</property>


--
<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/20101102/a36043e7/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/20101102/a36043e7/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic07367.gif
Type: image/gif
Size: 1255 bytes
Desc: $BL5$7(B
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20101102/a36043e7/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/20101102/a36043e7/attachment-0002.gif>


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