How to programmatically sign a binary MS office document with Java?
问题 How can we digitally sign a legacy binary MS-Office document (doc, xls, ppt) in Apache POI, or any other open source library? The Open XML formats are covered at How to programatically sign an MS office XML document with Java? 回答1: I was able to sign .doc file by creating detached xml signature, then adding it under root directory using POIFSFileSystem, example is below : public class OfficeDocumentSigner2 { public static void main(String[] args) { signClassicOfficeDocuments(); } private