What is password?

I protect the document using doc.Protect method(ProtectionType.ReadOnly). However when I unprotect the doc using MS Word, it asks for password. What is default password? I am using evaluation version of Aspose.

Hi

Thanks for your request. When you protect a document, and the document does not have a protection password, this method assigns a random password that makes it impossible to unprotect the document in Microsoft Word. See the following link for more information.
https://reference.aspose.com/words/net/aspose.words/document/protect/

You should use Protect(ProtectionType Type, String Password) method to protect document with password. See the following string for more information.
https://reference.aspose.com/words/net/aspose.words/document/protect/

Best regards.