Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
public static class OneWayHasher
{
/// <summary>
/// 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.
/// </summary>
public static string CalculateOneWayHash(string input)
=> BitConverter.ToString(SHA3_256.HashData(Encoding.UTF8.GetBytes(input))).Replace("-", "");
}
=> BitConverter.ToString(SHA256.HashData(Encoding.UTF8.GetBytes(input))).Replace("-", "");
}