public static SqlBytes Sha256(SqlString text) { HashAlgorithm hash = new SHA256Managed(); return new SqlBytes(hash.ComputeHash(text.GetUnicodeBytes())); }