Skip to content

Instantly share code, notes, and snippets.

View asanchezr's full-sized avatar

Alejandro Sanchez asanchezr

  • Victoria BC, Canada
View GitHub Profile
@kristopherjohnson
kristopherjohnson / SHA1Util.cs
Last active October 1, 2020 22:18
.NET/C# Generate SHA1 hex string for a string encoded as UTF8
using System.Security.Cryptography;
using System.Text;
namespace Snippets
{
public static class SHA1Util
{
/// <summary>
/// Compute hash for string encoded as UTF8
/// </summary>