adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.26k stars 480 forks source link

Crx file support added (only for reading) #810

Closed ghost closed 6 months ago

ghost commented 7 months ago

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.