Skip to content

Commit bc4b390

Browse files
authored
Merge pull request #101 from Particular/update_algorithm
update hashing algorithm to be supported on all platforms
2 parents c6e7a38 + 775c4bd commit bc4b390

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Particular.LicensingComponent.Report/Utility/OneWayHasher.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
public static class OneWayHasher
1010
{
1111
/// <summary>
12-
/// Calculates the SHA3-256 hash of the specified input string and returns the result as a hexadecimal string.
12+
/// Calculates the SHA256 hash of the specified input string and returns the result as a hexadecimal string.
1313
/// </summary>
1414
public static string CalculateOneWayHash(string input)
15-
=> BitConverter.ToString(SHA3_256.HashData(Encoding.UTF8.GetBytes(input))).Replace("-", "");
16-
}
15+
=> BitConverter.ToString(SHA256.HashData(Encoding.UTF8.GetBytes(input))).Replace("-", "");
16+
}

0 commit comments

Comments
 (0)