[PR #810] [CLOSED] Crx file support added (only for reading) #1250

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

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/810
Author: @ghost
Created: 2/17/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 130dfc3 Crx file support added (only for reading)

📊 Changes

3 files changed (+340 additions, -0 deletions)

View changed files

reference/CRX Package Format.html (+126 -0)
reference/Crx3.proto (+52 -0)
src/SharpCompress/Archives/Crx/CrxArchive.cs (+162 -0)

📄 Description

I added Crx Archive support to SharpCompress.

These archives are used by the Google Chrome and Microsoft Edge browser for extension. They are ZIP archives with additional headers in front of the ZIP data.

Since these headers are contains public keys of the authors of the extension, which are verified with SHA 256, I can't implement write assess.

Because I didn't understand the ZIPArchive implementation of SharpCompress, I realized my implementation with a copy of the .crx file without the addition headers as a temp file.


🔄 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/810 **Author:** [@ghost](https://github.com/ghost) **Created:** 2/17/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`130dfc3`](https://github.com/adamhathcock/sharpcompress/commit/130dfc39eb0a4c0725556169ede1beb9762d532c) Crx file support added (only for reading) ### 📊 Changes **3 files changed** (+340 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `reference/CRX Package Format.html` (+126 -0) ➕ `reference/Crx3.proto` (+52 -0) ➕ `src/SharpCompress/Archives/Crx/CrxArchive.cs` (+162 -0) </details> ### 📄 Description I added [Crx Archive](https://docs.fileformat.com/misc/crx/) support to SharpCompress. These archives are used by the Google Chrome and Microsoft Edge browser for extension. They are ZIP archives with additional headers in front of the ZIP data. Since these headers are contains public keys of the authors of the extension, which are verified with SHA 256, I can't implement write assess. Because I didn't understand the ZIPArchive implementation of SharpCompress, I realized my implementation with a copy of the .crx file without the addition headers as a temp file. --- <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:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1250