I am using cryptoPHPDOCX to lock the tracking changes in a word document using :
$docx->protectDocx($file_path . '.docx', $file_path . '.docx', array('password' => $tracking_lock_pass, 'type' => 'trackedChanges'));
I faced an issue when using third party word editor in my application, it's not allowing me to open the document (read-only) . I contacted the third party and they said the following : document_with_unlock_changes_working.docx
having track changes locked by Microsoft Word uses the cryptProviderType rsaAES
, while the file document_with_unlock_changes_not_working.docx
having the track changes locked using PHPDOCX uses the cryptProviderType rsaFull
.
At present, DocumentEditor only supports the "rsaAES" cryptProviderType for both protecting and unprotecting documents.
can we change the encryption type?
Thanks.