Generation

generate functionSat, 12 Nov 2022

Generate a SHA256 hash of an input and return it

public static string GetSha256(string text) { var md5 = System.Security.Cryptography.MD5.Create(); var bytes = Encoding.UTF8.GetBytes(text); var hashBytes = md5.ComputeHash(bytes); return BitConverter.ToString(hashBytes).Replace("-", ""); }

Want to kickstart your project?Use the new AI Studio to create your code