摘要:block cipher 工作模式(引自百度)Electronic Codebook Mode 最经典的模式,把明文按64比特为单位分为block, 对所有block使用同样的密钥来加密,最后把输出的密文块连接起来,成为最后的密文。Cipher Block Chainning Mode 使用Elec...
阅读全文
摘要://PrintStream 为其他输出流添加了功能,使它们能够方便地打印各种数据值表示形式。//PrintStream不同于PrintWriter,PrintStream输出的是字节内容。//public PrintStream(OutputStreamout)创建新的打印流。PrintStream ps=new PrintStream(new FileOutputStream(new File("文件名.txt"),true));//第二个参数是免覆盖免去用inputstream。fileinputstream,bufferedwriter(字节,字符,缓冲,数组,数据,
阅读全文
摘要:String sql = "select * from student where name= ?"; PreparedStatement pst = conn.prepareStatement(sql); pst.setString(1,n); ResultSet result = pst.executeQuery( sql);第一句感觉没问题呀。。。。可是为啥??com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; chec...
阅读全文