Exemple #1
0
        private static byte[] HashSha256String(string sourceString)
        {
            if (string.IsNullOrEmpty(sourceString))
            {
                return(null);
            }

            try
            {
                return(EncryptorHelper.HashSha256(System.Text.Encoding.UTF8.GetBytes(sourceString)));
            }
            catch (System.Exception)
            {
                System.Diagnostics.Debug.Assert(false);
            }

            return(null);
        }