次の C# メソッドを SQL Server 2014 コードに書き直そうとします。これまでのところ無駄です。
public static string GetHash(string input)
{
HashAlgorithm hashAlgorithm = new SHA256CryptoServiceProvider();
byte[] byteValue = System.Text.Encoding.UTF8.GetBytes(input);
byte[] byteHash = hashAlgorithm.ComputeHash(byteValue);
return Convert.ToBase64String(byteHash);
}
特に UTF8 へのエンコーディングには問題があります。
助けていただければ幸いです。