Пример #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();
        }