1: …… 2: public boolean DBConnect() throws SQLException { 3: String url = "DBServer"; 4: String usr = "Scott"; 5: Connection con = null; 6: 7: try { 8: Properties prop = new Properties(); 9: prop.load(new FileInputStream("config.properties")); 10: 11: // 패스워드를 64bit로 decoding한다. 12: byte password[] = Base64.decode(prop.getProperty("password" )); 13: 14: // 유효성 점검없이 패스워드를 문자열로 읽는다. 15: con = DriverManager.getConnection(url, usr, password.toString()); 16: } catch (FileNotFoundException e) { 17: e.printStackTrace(); 18: } catch (IOException e) { 19: e.printStackTrace(); 20: } 21: }