我正在实现 AES 算法 128 位密钥。加密后,前 16 个字节的加密数据将存储在 .docx 文件中。之后,.docx 文件将被阻止。
XWPFDocument document = new XWPFDocument() ;
FileOutputStream out = new FileOutputStream(filename,true);//filename is .docx word document
XWPFParagraph paragraph = document.createParagraph();
XWPFRun run = paragraph.createRun();
run.setText(ress1);//ress1 is a String datatype
document.write(out);