목록자바 (10)
정미나닷컴
import javax.crypto.Cipher; → 데이터를 암호화하고 복호화하는 기본 엔진 getInstance(): 암호화 모드를 설정하여 그 객체를 생성 init(): 암호화, 복호화 설정과 key 설정 doFinal(): 결과값 return ☞ 주요 메소드 static Cipher getInstance(String transformation) Returns a Cipher object that implements the specified transformation void init(int opmode, Key key) Initializes this cipher with a key void init(int opmode, Key key, AlgorithmParameterSpec params) Ini..
public String getPaging(int totalCount, int currentPage, int pageSize, int pageGroupSize){ String pageStr = ""; int pageGroupCount = totalCount / (pageSize * pageGroupSize) + (totalCount % (pageSize * pageGroupSize) == 0 ? 0 :1); int numPageGroup = (int)Math.ceil((double)currentPage / pageGroupSize); if (totalCount > 0){ int pageCount = (totalCount / pageSize) + (totalCount % pageSize == 0 ? 0 :..