Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/ICSharpCode.SharpZipLib/Zip/ZipInputStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;

namespace ICSharpCode.SharpZipLib.Zip
{
Expand Down Expand Up @@ -574,9 +573,7 @@ private int InitialRead(byte[] destination, int offset, int count)

// Generate and set crypto transform...
var managed = new PkzipClassicManaged();
Console.WriteLine($"Input Encoding: {_stringCodec.ZipCryptoEncoding.EncodingName}");
byte[] key = PkzipClassic.GenerateKeys(_stringCodec.ZipCryptoEncoding.GetBytes(password));
Console.WriteLine($"Input Bytes: {string.Join(", ", key.Select(b => $"{b:x2}").ToArray())}");

inputBuffer.CryptoTransform = managed.CreateDecryptor(key, null);

Expand Down