A simple question regarding password protection of docx document. The protection and the document is locked perfectly but we cant seem to get the password to unlock the document again. :oops:
Here is what our final settings.xml is looking like.
- Code: Select all
<w:trackRevisions/><w:documentProtection w:salt="765hSrDKb6lC49/43ZYQIw==" w:hash="GQX3oKKv71QhkN5AAR2evA==" w:cryptSpinCount="100000" w:cryptAlgorithmSid="14" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmClass="hash" w:cryptProviderType="rsaAES" w:enforcement="true" w:edit="readOnly"/>
and the docx4j java code creating the protection element
// (1.1) lock the entire ...