I already has wrote AglieEncryptor and adapted EncryptionInfo and other classes. Now I can create encryption info header and encryption package header. I create new NPOIFSFileSystem and don't now how i can write encryption info header and encryption package header to this. If i use method createDocument I get exception "Can't read from a new stream before it has been written to".
2013/11/18 Andreas Beeker <[email protected]> > By writing "Office Open ..." I meant encrypted X..F (e.g. XSSF for .xlsx) > files, which > is achieved by the org.apache.poi.poifs.crypt.AgileDecryptor class. > Encrypted OOXML files are wrapped by a (N)POIFS. > > After hopefully finishing issue #55758 this week, I'll continue with > #53475 [1], > i.e. adding agile encryption. > > If you want to add encryption support for .xlsx before that, you might > wana look at the above class > and its sibling classes. It looks like, that most of the code of > generating and verifying the encryption key > is already there and only has to be adapted for encryption. > > Furthermore the MSDN docs [2] are also a good source of how this works. > > [1]: https://issues.apache.org/bugzilla/show_bug.cgi?id=53475 > [2]: http://msdn.microsoft.com/en-us/library/cc313071(v=office.12).aspx > > > > On 18.11.2013 10:33, Андрей Богданов wrote: > >> Thank you for answer, but I want add encryption support in Apache poi. >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
