Coder Social home page Coder Social logo

About AES encode about managed-lzma HOT 9 CLOSED

weltkante avatar weltkante commented on September 22, 2024
About AES encode

from managed-lzma.

Comments (9)

weltkante avatar weltkante commented on September 22, 2024

So far I've only ported the AES decoder so it's currently not possible to output encrypted archives, but I'll take a look. If System.Security.Cryptography outputs data compatible to the 7z format I may be able to implement it.

from managed-lzma.

szmulder avatar szmulder commented on September 22, 2024

I have to say your project is the best 7Z project I have ever seen.
Very easy to use as well!

from managed-lzma.

weltkante avatar weltkante commented on September 22, 2024

I've done some initial testing and it looks like it is possible to use System.Security.Cryptography for implementing an AES encoder. However before doing so I need to fix some other issues, in particular issue #5 is important to verify the password when you later unpack an encrypted 7z archive. If the (optional) checksum is not present 7z can still decrypt the file but cannot tell if your password was correct. If it isn't correct you get random garbage in the decrypted file, but 7z doesn't realize that when it doesn't have a checksum to compare with.

from managed-lzma.

szmulder avatar szmulder commented on September 22, 2024

Very nice work!

from managed-lzma.

szmulder avatar szmulder commented on September 22, 2024

Is the AES encoder available to use?

from managed-lzma.

weltkante avatar weltkante commented on September 22, 2024

Sorry, I only have limited time and have been using that to work on issue #4 - right now I can't get the sample to work as it was intended so there is not much point in working at new encoder variants until that bug is fixed.

I do have a prototype version which can be used in the ArchiveWriter.ConnectEncoder call but currently this means you have to chose between encryption and compression and can't use them both at the same time, which is probably not really useful, so I didn't bother to check it in.

from managed-lzma.

weltkante avatar weltkante commented on September 22, 2024

After fixing the deadlock issue I'll work on AES over the next week.

from managed-lzma.

weltkante avatar weltkante commented on September 22, 2024

Initial implementation for AES encryption is checked in, it should match what 7z 9.22 does.

The sandbox-7z project is updated as an example, but basically you create an EncryptionProvider with the desired password and assign it to the ArchiveWriter and the encoders will pick it up.

from managed-lzma.

szmulder avatar szmulder commented on September 22, 2024

Your are my hero! :)

from managed-lzma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.