using System.Collections.Generic;
using System.Security.Cryptography;
public static void Main()
Console.WriteLine(SHA256("BIKE0001"));
private static string GenerateHashString(HashAlgorithm algo, string text)
algo.ComputeHash(Encoding.UTF8.GetBytes(text));
result.Select(x => x.ToString("x2")));
public static string SHA256(string text)
var result = default(string);
using (var algo = new SHA256Managed())
result = GenerateHashString(algo, text);