[PR #99] [MERGED] Add password when opening RarReader #835

Closed
opened 2026-01-29 22:17:48 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/99
Author: @Rovak
Created: 10/27/2015
Status: Merged
Merged: 1/3/2016
Merged by: @adamhathcock

Base: masterHead: rarreader-add-password


📝 Commits (1)

  • 6e0f4ec Add password when opening RarReader

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 SharpCompress/Archive/Rar/RarArchive.cs (+1 -1)

📄 Description

When using the following code the program will crash because there is no password specified

var archive = RarArchive.Open(***);
var entries = archive.ExtractAllEntries();
while(entries.MoveToNextEntry()) { // cryptographic exception here
   // do something with entries
}

This pull requests passes the password to the RarReader


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/adamhathcock/sharpcompress/pull/99 **Author:** [@Rovak](https://github.com/Rovak) **Created:** 10/27/2015 **Status:** ✅ Merged **Merged:** 1/3/2016 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `rarreader-add-password` --- ### 📝 Commits (1) - [`6e0f4ec`](https://github.com/adamhathcock/sharpcompress/commit/6e0f4ecbc97c4fb00a2ea73496b80c8223271f28) Add password when opening RarReader ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `SharpCompress/Archive/Rar/RarArchive.cs` (+1 -1) </details> ### 📄 Description When using the following code the program will crash because there is no password specified ``` c# var archive = RarArchive.Open(***); var entries = archive.ExtractAllEntries(); while(entries.MoveToNextEntry()) { // cryptographic exception here // do something with entries } ``` This pull requests passes the password to the `RarReader` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 22:17:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#835