title: Password protect Open XML Wordprocessing Document
body: <p>I need to add basic password protection to an Open XML Wordprocessing document. I can either use the COM interface, which is <em>very</em> slow when I have a large number of documents to process; or I can put the data directly in the docx file under <code>&lt;w:settings&gt;</code> <code>&lt;w:documentProtection&gt;</code> which is very fast. However, looking at the requirements to encrypt the password looks like it will take hours of programming. Does anyone have this algorithm already coded? I'm coding in C#.</p>