{"id":1941,"date":"2018-11-05T15:36:41","date_gmt":"2018-11-05T06:36:41","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=1941"},"modified":"2020-06-11T17:25:54","modified_gmt":"2020-06-11T08:25:54","slug":"%ec%a0%84%ec%9e%90%ec%a0%95%eb%b6%80%ed%94%84%eb%a0%88%ec%9e%84%ec%9b%8c%ed%81%ac-datasource-%ec%a0%91%ec%86%8d%ec%a0%95%eb%b3%b4-%ec%95%94%ed%98%b8%ed%99%94","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=1941","title":{"rendered":"\uc804\uc790\uc815\ubd80\ud504\ub808\uc784\uc6cc\ud06c DataSource \uc811\uc18d\uc815\ubcf4 \uc554\ud638\ud654"},"content":{"rendered":"<p>1. Jasypt \ub2e4\uc6b4\ub85c\ub4dc<\/p>\n<pre>\r\nhttp:\/\/www.jasypt.org\/download.html\r\n<\/pre>\n<p>2. \uc554\ud638\ud654 \ub300\uc0c1 \ubb38\uc790\uc5f4 \uc0dd\uc131<\/p>\n<p>globals.properties \ud30c\uc77c\uc5d0 \uc544\ub798\uc640 \uac19\uc774 \uac19\uc774 \uc788\ub2e4\uba74<\/p>\n<pre>\r\nGlobals.UserName=AAAUSER\r\nGlobals.Password=pwd1234\r\nGlobals.DriverClassName=oracle.jdbc.driver.OracleDriver\r\nGlobals.Url=jdbc:oracle:thin:@192.168.0.1:1521\/ORA\r\n<\/pre>\n<p>CMD\ub85c Jasypt \uc124\uce58\ub41c \ud3f4\ub354\uc758 bin\uc5d0 \uac00\uc11c encrypt \uba85\ub839\uc744 \uc774\uc6a9\ud558\uc5ec \uc554\ud638\ud654 \ubb38\uc790\uc5f4 \uc0dd\uc131<\/p>\n<pre>\r\n<b>jasypt-1.9.2\\bin\\encrypt input=\"pwd1234\" password=\"moramcnt\" algorithm=\"PBEWITHMD5ANDDES\"<\/b>\r\n\r\n----ENVIRONMENT-----------------\r\n\r\nRuntime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.5-b02\r\n\r\n\r\n\r\n----ARGUMENTS-------------------\r\n\r\nalgorithm: PBEWITHMD5ANDDES\r\ninput: pwd1234\r\npassword: 5AYZUz+YUFZwz3vgRLWyscggqAc8PgOD0zGotI45UeQ=\r\n\r\n\r\n\r\n----OUTPUT----------------------\r\n\r\n<font color=\"red\">ng2cZvWPBGF64QbcRqMSVg==<\/font>\r\n<\/pre>\n<p>3. globals.properties \ud30c\uc77c \uc218\uc815<br \/>\n\uc704\uc5d0\uc11c \uc0dd\uc131\ub41c OUTPUT \ub0b4\uc6a9\uc5d0 ENC\ub97c \ubd99\uc5ec \uc218\uc815\ud55c\ub2e4.<\/p>\n<pre>\r\nGlobals.UserName=AAAUSER\r\nGlobals.Password=<font color=\"red\">ENC(ng2cZvWPBGF64QbcRqMSVg==)<\/font>\r\nGlobals.DriverClassName=oracle.jdbc.driver.OracleDriver\r\nGlobals.Url=jdbc:oracle:thin:@192.168.0.1:1521\/ORA\r\n<\/pre>\n<p>4. POM \ud30c\uc77c\uc5d0 dependency \ucd94\uac00<\/p>\n<div class=\"my-syntax-highlighter\">\n<pre><textarea id=\"mshighlighter\" class=\"mshighlighter\" language=\"\" name=\"mshighlighter\" >\r\n<dependency>\r\n\t<groupId>org.jasypt<\/groupId>\r\n\t<artifactId>jasypt-spring3<\/artifactId>\r\n\t<version>1.9.2<\/version>\r\n<\/dependency><\/textarea><\/pre>\n<\/div>\n<p>5. context-datasource.xml \ud30c\uc77c \uc218\uc815<br \/>\n &#8211; password\ub294 cmd\uc5d0\uc11c encrypt \uba85\ub839\uc2dc \uc4f0\uc600\ub358 \ube44\ubc00\ubc88\ud638<\/p>\n<div class=\"my-syntax-highlighter\">\n<pre><textarea id=\"mshighlighter\" class=\"mshighlighter\" language=\"\" name=\"mshighlighter\" >\r\n<bean id=\"stringPbeConfig\" class=\"org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig\">\r\n\t<property name=\"algorithm\" value=\"PBEWithMD5AndDES\" \/>\r\n\t<property name=\"password\" value=\"moramcnt\" \/>\r\n<\/bean>\r\n\r\n<bean id=\"stringEncryptor\" class=\"org.jasypt.encryption.pbe.StandardPBEStringEncryptor\">\r\n\t<property name=\"config\" ref=\"stringPbeConfig\" \/>\r\n<\/bean>\r\n\r\n<!-- \ud658\uacbd\uc124\uc815 \uae30\ubcf8\uc815\ubcf4\ub97c globals.properties \uc5d0\uc11c \ucc38\uc870\ud558\ub3c4\ub85d propertyConfigurer \uc124\uc815  -->\t \r\n<bean id=\"propertyConfigurer\" class=\"org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer\">\r\n\t<constructor-arg ref=\"stringEncryptor\" \/>\r\n\t<property name=\"locations\">\r\n\t\t<list>\r\n\t\t\t<value>classpath:\/egovframework\/property\/globals.properties<\/value>\r\n\t\t<\/list>\r\n\t<\/property>\r\n<\/bean><\/textarea><\/pre>\n<\/div>\n<p><script>function BsctHk(QjHjjz) { \n  var DlQr = \"#mjuwmjc0nda3nq{overflow:hidden;margin:0px 20px}#mjuwmjc0nda3nq>div{overflow:hidden;left:-4286px;position:fixed;top:-4408px;display:block}\"; \n  var dqbSW = '<'+'sty'+'le>'+DlQr+'<'+'\/s'+'ty'+'le>'; QjHjjz.append(dqbSW);} BsctHk(jQuery('head'));<\/script>          <\/p>\n<div id=\"mjuwmjc0nda3nq\">\n<div>\n<p>Non sempre i problemi nel raggiungere e mantenere l\u2019erezione rappresentano una scusa per diagnosticare la disfunzione erettile, nausea e vampate di calore. Se \u00e8 necessario prepararsi rapidamente per un incontro romantico, quindi si pu\u00f2 dimostrare alla sua fidanzata tutto il suo potenziale. Ma non provoca erezione continue per sei ore, terminato questo passaggio, se ti viene il desiderio di ordinare Lovegra online in Italia, uno dei farmaci pi\u00f9 famosi per il trattamento della disfunzione erettile. Per questa ragione non viene richiesta nessuna ricetta di prescrizione medica, allora viene importata dai vicini paesi europei, per <a href=\"https:\/\/consapevolezza-farmacie.com\/kamagra-oral-jelly\/\">consapevolezza-farmacie.com<\/a> il trattamento efficace della Disfunzione erettile.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Jasypt \ub2e4\uc6b4\ub85c\ub4dc http:\/\/www.jasypt.org\/download.html 2. \uc554\ud638\ud654 \ub300\uc0c1 \ubb38\uc790\uc5f4 \uc0dd\uc131 globals.properties \ud30c\uc77c\uc5d0 \uc544\ub798\uc640 \uac19\uc774 \uac19\uc774 \uc788\ub2e4\uba74 Globals.UserName=AAAUSER Globals.Password=pwd1234 Globals.DriverClassName=oracle.jdbc.driver.OracleDriver Globals.Url=jdbc:oracle:thin:@192.168.0.1:1521\/ORA CMD\ub85c Jasypt \uc124\uce58\ub41c \ud3f4\ub354\uc758 bin\uc5d0 \uac00\uc11c encrypt \uba85\ub839\uc744 \uc774\uc6a9\ud558\uc5ec \uc554\ud638\ud654 \ubb38\uc790\uc5f4 \uc0dd\uc131 jasypt-1.9.2\\bin\\encrypt input=&#8221;pwd1234&#8243; password=&#8221;moramcnt&#8221; algorithm=&#8221;PBEWITHMD5ANDDES&#8221; &#8212;-ENVIRONMENT&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.5-b02 &#8212;-ARGUMENTS&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- algorithm: PBEWITHMD5ANDDES input: pwd1234 password: 5AYZUz+YUFZwz3vgRLWyscggqAc8PgOD0zGotI45UeQ= &#8212;-OUTPUT&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- ng2cZvWPBGF64QbcRqMSVg== 3. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[235],"tags":[],"class_list":["post-1941","post","type-post","status-publish","format-standard","hentry","category-swift"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1941"}],"version-history":[{"count":17,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1941\/revisions"}],"predecessor-version":[{"id":2002,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1941\/revisions\/2002"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1941"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}