Esempio n. 1
0
        private static void FullNameMaskDemo()
        {
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);  //解决中文乱码
            var encoding = Encoding.GetEncoding("GBK");
            var name     = "张三丰";
            var mask     = CryptographyUtils.FullNameMask(name);

            Console.WriteLine(mask);
        }