# Compare multiple documents protected by password This article describes how to compare multiple Word documents or PowerPoint presentations protected by password using GroupDocs.Comparison for .NET API. {{< alert style="info" >}}This feature is available only for Word documents, PowerPoint, and Open Document presentations.{{< /alert >}} [GroupDocs.Comparison](https://products.groupdocs.com/comparison/net) allows you to compare more that two password-protected documents. To compare several password-protected documents, follow these steps: 1. Instantiate the [LoadOptions](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/loadoptions) object. Specify source document password. 2. Instantiate the [Comparer](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer) object. Specify the source document path or stream and the [LoadOptions](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/loadoptions) object created in the previous step. 3. Instantiate another [LoadOptions](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/loadoptions) object and specify target document password. 4. Call the [Add](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/add/index) method and specify the target document path or stream and the [LoadOptions](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/loadoptions) object created at previous step. Repeat steps 3-4 for every target document. 5. Call the [Compare](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/compare/index) method. The following code snippets shows how to compare several password-protected documents: ## Compare several password-protected documents from local disk {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using GroupDocs.Comparison; using GroupDocs.Comparison.Options; // ... using (Comparer comparer = new Comparer("source.docx", new LoadOptions() { Password = "1234" })) { comparer.Add("target1.docx", new LoadOptions() { Password = "5678" }); comparer.Add("target2.docx", new LoadOptions() { Password = "5678" }); comparer.Add("target3.docx", new LoadOptions() { Password = "5678" }); comparer.Compare("result.docx"); } ``` {{< /tab >}} {{< /tabs >}} ## Compare several password-protected documents from stream {{< tabs "example2">}} {{< tab "C#" >}} ```csharp using GroupDocs.Comparison; using GroupDocs.Comparison.Options; using System.IO; // ... using (Comparer comparer = new Comparer( File.OpenRead("source.docx"), new LoadOptions() { Password = "1234" })) { comparer.Add(File.OpenRead("target1.docx"), new LoadOptions() { Password = "5678" }); comparer.Add(File.OpenRead("target2.docx"), new LoadOptions() { Password = "5678" }); comparer.Add(File.OpenRead("target3.docx"), new LoadOptions() { Password = "5678" }); comparer.Compare(File.Create("result.docx")); } ``` {{< /tab >}} {{< /tabs >}}