> I have to read an encrypted file and write the content of that file in new 
> file with some modification and with same password protection

> While using EncryptionInfo we are able to read .docx file but it's not 
> working if we use it for .doc

Currently the CryptoAPI method is not supported. Maybe your .doc file is using 
this encryption method.
Furthermore the XOR obfuscation differs slightly for .xls and .doc files, and I 
have only tested/developed it with .xls files :|
... and afaik both RC4/XOR methods are record based encryption opposed to 
standard/agile encryption where the whole file is encrypted in one stream, so 
POI supports it only for .xls

Can you provide me a failing .doc file?

So reading/writing the .docx files works, right?

Reply via email to