Skip to content

Main - #1

Merged
cbsom merged 3 commits into
masterfrom
main
Jul 15, 2026
Merged

Main#1
cbsom merged 3 commits into
masterfrom
main

Conversation

@cbsom

@cbsom cbsom commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Updated to .net 10 and enhanced significantly.

cbsom and others added 3 commits June 14, 2019 01:18
Copilot AI review requested due to automatic review settings July 15, 2026 14:33
@cbsom
cbsom merged commit f7d3bb0 into master Jul 15, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the legacy .NET Framework-based FileConfunder console app with a new SDK-style Confunder project targeting net10.0, modernizing the CLI and adding new key-handling and file-marking behavior.

Changes:

  • Removed the old .NET Framework project (app.config / Settings / AssemblyInfo / Program / csproj) and introduced a new SDK-style Confunder project.
  • Reworked command-line behavior (default actions, folder handling, setkey, run via shell execute) and added a “confunded mark” prepended to files.
  • Added a Build.bat script and updated the solution to Visual Studio 18.

Reviewed changes

Copilot reviewed 13 out of 16 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
FileConfunder/Properties/Settings.settings Removed legacy application settings.
FileConfunder/Properties/Settings.Designer.cs Removed generated settings wrapper.
FileConfunder/Properties/AssemblyInfo.cs Removed legacy assembly attributes (SDK-style projects typically generate these).
FileConfunder/Program.cs Removed legacy CLI + confunding implementation.
FileConfunder/FileConfunder.csproj Removed legacy .NET Framework csproj.
FileConfunder/App.config Removed legacy app.config-based configuration.
Confunder/Properties/launchSettings.json Added launch profile for the new project.
Confunder/Program.cs Added the new CLI implementation, key storage logic, and file marking + encrypt/decrypt flow.
Confunder/FPE.Net/FF1.cs Added FF1 implementation used for format-preserving encryption.
Confunder/FPE.Net/Constants.cs Added FPE constants.
Confunder/FPE.Net/Common.cs Updated common routines (notably removed invalid null check for BigInteger).
Confunder/FPE.Net/Ciphers.cs Switched from AesManaged to Aes.Create() for AES primitives.
Confunder/Confunder.csproj Added new SDK-style project targeting net10.0.
Confunder/appsettings.json Added placeholder appsettings file (currently empty).
Confunder.sln Updated VS version and project reference, but still contains stale configuration entries for the removed project GUID.
Build.bat Added a build script (currently hardcoded to MSBuild 2019 path and runs git pull).
Files not reviewed (1)
  • FileConfunder/Properties/Settings.Designer.cs: Generated file
Comments suppressed due to low confidence (2)

Confunder.sln:17

  • The solution still contains ProjectConfigurationPlatforms entries for the removed FileConfunder project GUID. This can cause solution load/build warnings or failures because the project no longer exists in the solution.
    Confunder/FPE.Net/Ciphers.cs:61
  • The catch block rethrows the exception using "throw e" (below), which resets the stack trace. Use a bare "throw;" (and optionally drop the exception variable) to preserve the original exception context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Confunder/Program.cs
private static string _pattern = "*";
private static bool _silent = false;
private static bool _isFolder = false;
private const string _keyAtRestEncryptionKey = "5otf7MjpE3CDioZSf1Y2M5J/RH1Fl4CbXBYRCfP5Y3o=";
Comment thread Confunder/Program.cs
Comment on lines +214 to +217
if (args.Contains("-path"))
{
_path = args[Array.IndexOf(args, "-path") + 1];
}
Comment thread Confunder/Program.cs
Comment on lines +269 to +272
if (actionNeedsPath && _isFolder)
{
_pattern = args[Array.IndexOf(args, "-pattern") + 1];
}
Comment thread Confunder/Program.cs
Comment on lines +589 to +592
// 3. Swap the temporary file with the original file
File.Delete(path);
File.Move(tempPath, path);
return true;
Comment thread Confunder/Program.cs
return enced.Select(i => (byte)i).ToArray();
}

public static void RemoveBytesFromStart(FileStream fs, int bytesToRemove)
Comment thread Build.bat
@@ -0,0 +1,3 @@
git pull && FOR %%a in (*.sln) DO "D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" %%a /p:Configuration=Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants