public string GetChecksum(string strValue) { string strSHA256TOString = string.Empty; //Modified to windows - 1256 29-04-2012 //byte[] bBytes = Encoding.UTF8.GetBytes(strValue); byte[] bBytes = Encoding.GetEncoding("windows-1256").GetBytes(strValue); var sha = new SHA256Managed(); byte[] bChecksum = sha.ComputeHash(bBytes); strSHA256TOString = BitConverter.ToString(bChecksum).Replace("-", String.Empty); return strSHA256TOString.ToLower(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)