[PR #788] [MERGED] RAR5 decryption support #1229

Open
opened 2026-01-29 22:19:34 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/788
Author: @Erior
Created: 12/16/2023
Status: Merged
Merged: 12/18/2023
Merged by: @adamhathcock

Base: masterHead: develop


📝 Commits (2)

📊 Changes

16 files changed (+419 additions, -2137 deletions)

View changed files

📝 src/SharpCompress/Archives/Rar/SeekableFilePart.cs (+10 -1)
src/SharpCompress/Common/Rar/CryptKey3.cs (+87 -0)
src/SharpCompress/Common/Rar/CryptKey5.cs (+97 -0)
📝 src/SharpCompress/Common/Rar/Headers/ArchiveCryptHeader.cs (+6 -35)
📝 src/SharpCompress/Common/Rar/Headers/FileHeader.cs (+40 -21)
📝 src/SharpCompress/Common/Rar/Headers/Flags.cs (+11 -0)
📝 src/SharpCompress/Common/Rar/Headers/RarHeader.cs (+1 -1)
📝 src/SharpCompress/Common/Rar/Headers/RarHeaderFactory.cs (+26 -6)
src/SharpCompress/Common/Rar/ICryptKey.cs (+8 -0)
src/SharpCompress/Common/Rar/Rar5CryptoInfo.cs (+59 -0)
📝 src/SharpCompress/Common/Rar/RarCryptoBinaryReader.cs (+17 -28)
📝 src/SharpCompress/Common/Rar/RarCryptoWrapper.cs (+5 -10)
src/SharpCompress/Common/Rar/RarRijndael.cs (+0 -114)
src/SharpCompress/Crypto/BlockTransformer.cs (+32 -0)
src/SharpCompress/Crypto/RijndaelEngine.cs (+0 -1909)
📝 tests/SharpCompress.Test/Rar/RarArchiveTests.cs (+20 -12)

📄 Description

Rar5 decryption support that handles our current test files, might work with issues

#755 #718 #517

Lets see if this passes CSharpier tests


🔄 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/788 **Author:** [@Erior](https://github.com/Erior) **Created:** 12/16/2023 **Status:** ✅ Merged **Merged:** 12/18/2023 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `develop` --- ### 📝 Commits (2) - [`d678275`](https://github.com/adamhathcock/sharpcompress/commit/d678275dee2ffa823c02b8845031498c8e961cec) Implement RAR5 decryption - [`619e44b`](https://github.com/adamhathcock/sharpcompress/commit/619e44b30f571999b83e544af7f634341407df35) CSharpier fixes ### 📊 Changes **16 files changed** (+419 additions, -2137 deletions) <details> <summary>View changed files</summary> 📝 `src/SharpCompress/Archives/Rar/SeekableFilePart.cs` (+10 -1) ➕ `src/SharpCompress/Common/Rar/CryptKey3.cs` (+87 -0) ➕ `src/SharpCompress/Common/Rar/CryptKey5.cs` (+97 -0) 📝 `src/SharpCompress/Common/Rar/Headers/ArchiveCryptHeader.cs` (+6 -35) 📝 `src/SharpCompress/Common/Rar/Headers/FileHeader.cs` (+40 -21) 📝 `src/SharpCompress/Common/Rar/Headers/Flags.cs` (+11 -0) 📝 `src/SharpCompress/Common/Rar/Headers/RarHeader.cs` (+1 -1) 📝 `src/SharpCompress/Common/Rar/Headers/RarHeaderFactory.cs` (+26 -6) ➕ `src/SharpCompress/Common/Rar/ICryptKey.cs` (+8 -0) ➕ `src/SharpCompress/Common/Rar/Rar5CryptoInfo.cs` (+59 -0) 📝 `src/SharpCompress/Common/Rar/RarCryptoBinaryReader.cs` (+17 -28) 📝 `src/SharpCompress/Common/Rar/RarCryptoWrapper.cs` (+5 -10) ➖ `src/SharpCompress/Common/Rar/RarRijndael.cs` (+0 -114) ➕ `src/SharpCompress/Crypto/BlockTransformer.cs` (+32 -0) ➖ `src/SharpCompress/Crypto/RijndaelEngine.cs` (+0 -1909) 📝 `tests/SharpCompress.Test/Rar/RarArchiveTests.cs` (+20 -12) </details> ### 📄 Description Rar5 decryption support that handles our current test files, might work with issues #755 #718 #517 Lets see if this passes CSharpier tests --- <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:19:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1229