## ArchiveLoadOptions.DecryptionPassword property

エントリを復号化するためのパスワードを取得または設定します。

```csharp
public string DecryptionPassword { get; set; }
```

### 例

アーカイブの抽出時に一度だけ復号化パスワードを提供できます。

```csharp
using (FileStream fs = File.OpenRead("encrypted_archive.zip"))
{
    using (var extracted = File.Create("extracted.bin"))
    {
        using (Archive archive = new Archive(fs, new ArchiveLoadOptions() { DecryptionPassword = "p@s$" }))
        {
            using (var decompressed = archive.Entries[0].Open())
            {
                byte[] b = new byte[8192];
                int bytesRead;
                while (0 < (bytesRead = decompressed.Read(b, 0, b.Length)))
                    extracted.Write(b, 0, bytesRead);
                
            }
        }
    }
}
```

### 関連項目

* method [Open](../../archiveentry/open/)
* class [ArchiveLoadOptions](../)
* 名前空間 [Aspose.Zip](../../archiveloadoptions/)
* 組み立て [Aspose.Zip](../../../)


