how to add a password?
using (Stream stream = File.OpenRead(@"C:\00\22.rar"))
using (Stream stream = File.OpenRead(@"C:\00\22.rar"))
{
stream.File.Password = "password"; // how to add a password?
var reader = ReaderFactory.Open(stream);
while (reader.MoveToNextEntry())
{
if (!reader.Entry.IsDirectory)
{
Console.WriteLine(reader.Entry.FilePath);
reader.WriteEntryToDirectory(@"C:\00\temp", ExtractOptions.ExtractFullPath | ExtractOptions.Overwrite);
}
}
}