Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • shaul
    Participant
    Post count: 3

    Thanks for the answer.
    I would like to clarify – I want to do the above while I have the password.

    What I did:

    var inZip = new ZipArchive(fileStream) { DefaultEncryptionPassword = password, DefaultDecryptionPassword = password };

    inZip.CopyFilesTo(outFolder, true, true);

    var localheader = new ZipItemLocalHeader() { EncryptionPassword = null };
    zipWriter.WriteItemLocalHeader(localHeader);
    zipWriter.WriteItemData(fileStream, buffer, 0, buffer.Length);

    Is this what you meant?

Viewing 1 post (of 1 total)