none
How a judgment. DOC if the file encryption? RRS feed

  • Question

  • If there is a encrypted. DOC documents and a unencrypted. DOC document, I this how through the programming detection if a file encryption? And to be able to give me a realization method, are looking forward to explain to me!!!! Thank you!
    Tuesday, January 17, 2012 12:57 AM

Answers

All replies

  • Hi Bill

     

    Thanks for the question. Someone from our team will contact you shortly.

     

    Thanks.


    Tarun Chopra | Escalation Engineer | Open Specifications Support Team
    Tuesday, January 17, 2012 1:08 AM
  • Just look for the EncryptionHeader at the start of the Table stream (see MS-DOC section 2.2.6 and MS-OFFCRYPTO section 2.3.6 for the details).

    Tuesday, January 17, 2012 9:45 AM
  • Hi Bill cowboy,

    As Brad said, presence of EncryptionHeader structure in the 0Table or 1Table stream signifies that the document uses encryption.

    Best regards,
    Tom Jebo
    Escalation Engineer
    Microsoft Open Specifications

    Tuesday, January 17, 2012 2:57 PM
    Moderator