From 775c4bd70e362a6c3089ee25351e4f4edc5bcd42 Mon Sep 17 00:00:00 2001 From: Phil Bastian <155411597+PhilBastian@users.noreply.github.com> Date: Tue, 3 Mar 2026 10:20:53 +0800 Subject: [PATCH] update hashing algorithm to be supported on all platforms SHA3 is not supported on Apple currently --- .../Utility/OneWayHasher.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Particular.LicensingComponent.Report/Utility/OneWayHasher.cs b/src/Particular.LicensingComponent.Report/Utility/OneWayHasher.cs index 6e2fe03..fb99320 100644 --- a/src/Particular.LicensingComponent.Report/Utility/OneWayHasher.cs +++ b/src/Particular.LicensingComponent.Report/Utility/OneWayHasher.cs @@ -9,8 +9,8 @@ public static class OneWayHasher { /// - /// Calculates the SHA3-256 hash of the specified input string and returns the result as a hexadecimal string. + /// Calculates the SHA256 hash of the specified input string and returns the result as a hexadecimal string. /// public static string CalculateOneWayHash(string input) - => BitConverter.ToString(SHA3_256.HashData(Encoding.UTF8.GetBytes(input))).Replace("-", ""); -} \ No newline at end of file + => BitConverter.ToString(SHA256.HashData(Encoding.UTF8.GetBytes(input))).Replace("-", ""); +}