oops why is password still there

This commit is contained in:
raphaeIl 2024-05-30 00:08:46 +08:00
parent a4a8e0b6f8
commit c393dace7c
1 changed files with 0 additions and 2 deletions

View File

@ -6,7 +6,6 @@ using System.Threading.Tasks;
using Google.FlatBuffers; using Google.FlatBuffers;
using Ionic.Zip; using Ionic.Zip;
using SCHALE.Common.Crypto; using SCHALE.Common.Crypto;
using Serilog;
namespace SCHALE.GameServer.Services namespace SCHALE.GameServer.Services
{ {
@ -62,7 +61,6 @@ namespace SCHALE.GameServer.Services
byte[] content = await response.Content.ReadAsByteArrayAsync(); byte[] content = await response.Content.ReadAsByteArrayAsync();
File.WriteAllBytes(zipPath, content); File.WriteAllBytes(zipPath, content);
using ZipFile zip = ZipFile.Read(zipPath); using ZipFile zip = ZipFile.Read(zipPath);
//zip.Password = "/wy5f3hIGGXLOIUDS9DZ";
zip.Password = Convert.ToBase64String(TableService.CreatePassword(Path.GetFileName(filePath))); zip.Password = Convert.ToBase64String(TableService.CreatePassword(Path.GetFileName(filePath)));
foreach (ZipEntry e in zip) foreach (ZipEntry e in zip)