Aspose::Words::Settings::WriteProtection::ValidatePassword method. Returns true if the specified password is the same as the write-protection password the document was protected with. If document is not write-protected with password then returns false in C++....programmatically, nor does it encrypt the contents. doc -> Save (...