using System.Security.Cryptography;
public static void Main()
Guid id = Guid.NewGuid();
string pas = "01210537-5ec1-4679-a69d-5058a03acf41";
string pas2 = "Ab@13224";
string pas3 = "AB@13224";
Console.WriteLine(HashPassword(pas2));
Console.WriteLine(HashPassword(pas3));
public static string HashPassword(string password)
using (SHA256 sha256 = SHA256.Create())
byte[] hashBytes = sha256.ComputeHash(Encoding.UTF8.GetBytes(password));
StringBuilder builder = new StringBuilder();
foreach (byte b in hashBytes)
builder.Append(b.ToString("x2"));
return builder.ToString();