반응형 Programming Language131 [Javascript] AES 암호화 복호화 (JAVA 완벽 호환) (스크랩) crypto-js 파일을 받을 수 있는 깃허브 주소입니다. https://github.com/brix/crypto-js GitHub - brix/crypto-js: JavaScript library of crypto standards. JavaScript library of crypto standards. Contribute to brix/crypto-js development by creating an account on GitHub. github.com 1. js 파일 추가 2. 전역 변수 설정 (java에서도 동일하게 설정하기) var keySize = 128; var iterations = iterationCount = 10000; var iv = "F27D5C9927726BCEFE7510B1BD.. 2018. 5. 18. (스크랩) jQuery : $.extend() 와 $.fn.extend() [jQuery:$.extend() 와 $.fn.extend() 의 혼동] .extend() 함수를 사용할 때 하나의 인수를 넘기는 것과 두 개 이상의 인수를 넘기는 것에는 아주 큰 차이가 있습니다. .extend() 함수가 하나의 객체를 받을 때 선언된 메소드를 jQuery 나 jQuery.fn (jQuery.prototype, 또는 $.fn 이라고 불리죠.) 에 추가시킵니다. 일반적으로 함수를 위해서는 jQuery 객체를 extend 시키고 메소드를 위해서는 jQuery.fn 을 extend 시킵니다. 함수는 DOM 에서 바로 접근이 불가능하고 메소드는 바로 접근이 가능하죠. 다음 예제에서 jQuery.fn 또는 jQuery 객체를 extend 시킬 때 부르는 방식이 달라짐을 눈여겨 보시기 바랍니다. .. 2018. 5. 3. [Java] Apache Common Compress java에서 제공하는 java.util.zip으로 압축하면 한글이 깨진다. Apache Common Compress 라이브러리는 http://commons.apache.org/compress/ 에서 받을수 있다. 1 2 3 4 5 6 7 org.apache.commons commons-compress 1.8.1 Colored by Color Scripter cs 2018. 4. 18. 주석으로 if문 /*/ 12345678910111213141516171819202122232425262728293031323334353637383940 /*/ } else if ("LGHT_RADT_STD_MAX".equalsIgnoreCase(infoColumn.getColumnName())) { // 빛방사허용기준 - 최대/평균 if(cell == null) { otdpotVO.setLghtRadtStdMax(null); otdpotVO.setLghtRadtStdAvg(null); }else{ if (cell.getCellType() == Cell.CELL_TYPE_STRING) { strVal = cell.getStringCellValue(); // 최대/평균이 같은 셀에 포함된 경우, 분리하여 각각 입력 if (strV.. 2018. 4. 11. (Java) FileOutputStream 실제 사용 예제 fileOutputStream = new FileOutputStream( new File( EgovProperties.getProperty("Globals.fileStorePath") + "zipFile" + File.separator + "a.zip" ) ); fileOutputStream.write(is); 2018. 4. 5. 이전 1 ··· 18 19 20 21 22 23 24 ··· 27 다음 반응형