示例#1
0
        static void HashManagerTests()
        {
            string str = "A";

            str = HashManager.ToBase64(str, 0, false);
            Console.WriteLine(str);
            Console.WriteLine(HashManager.ToString(HashManager.FromBase64(str)));
        }
示例#2
0
        static void Main(string[] args)
        {
            //RsaManagerTests();
            //HashManagerTests();
            Stopwatch sw = new Stopwatch();

            sw.Start();
            string data = "QA";

            Console.WriteLine(HashManager.ToString(HashManager.FromBase64(data)));
            data = "QEA";
            Console.WriteLine(HashManager.ToString(HashManager.FromBase64(data)));

            HashManagerTests();
            Console.ReadLine();
        }