Update
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user