コード例 #1
0
        private static void DemoCryptAlgorithm(ICrypt algorithm, string message)
        {
            var encryptMessage   = algorithm.Crypt(message);
            var decryptedMessage = algorithm.Decrypt(encryptMessage);

            Console.WriteLine(encryptMessage);
            Console.WriteLine(decryptedMessage);
            Console.WriteLine();
        }