Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2025-06-25 21:39:27 +07:00
parent a24da7a4fd
commit d5efc93429
2 changed files with 3 additions and 4 deletions

View File

@@ -71,8 +71,7 @@ namespace xaskel_coder
{
using (BinaryWriter writer = new BinaryWriter(fs))
{
string encodedString = string.Join("", encoded);
byte[] encodedBytes = Encoding.UTF8.GetBytes(encodedString);
byte[] encodedBytes = Encoding.UTF8.GetBytes(string.Join("", encoded));
writer.Write(encodedBytes);
writer.Write(data, encodeSize, data.Length - encodeSize);
}

View File

@@ -27,7 +27,7 @@ namespace xaskel_decoder
return;
Console.WriteLine("Done.");
Console.Write("Encoding files... ");
Console.Write("Decoding files... ");
foreach (string file in files)
{
DecryptFile(file, password);
@@ -72,7 +72,7 @@ namespace xaskel_decoder
{
File.Delete(newFilePath);
}
using (FileStream fs = new FileStream(newFilePath, FileMode.CreateNew))
{
fs.Write(decodedBytes.ToArray(), 0, decodedBytes.Count);