示例#1
0
        private static void MD5EncryptDemo()
        {
            var original = "This is MD5 Encrypt Demo.";
            var result   = CryptographyUtils.MD5Encrypt(original);

            Console.WriteLine(result);
            if (result.Equals("7c243f5af73c7ff5ec7fec10f45172e9", StringComparison.CurrentCultureIgnoreCase))
            {
                Console.WriteLine("true");
            }
        }