コード例 #1
0
        private static void ProcessDecryptesPart(string encryptedString)
        {
            var cipher = new StringCipherConsumer(getUserContent("Please enter a passphrase:"));

            ShowContent("Now lets decrypt this:" + encryptedString);

            ShowContent("So the decrypted value is:" + cipher.Decrypt(encryptedString));
        }
コード例 #2
0
        private static string ProcessEncrytedPart()
        {
            var    cipher   = new StringCipherConsumer(getUserContent("Please enter a passphrase:"));
            string userText = getUserContent("Please enter your text:");

            var encryptedString = cipher.Encrypt(userText);

            ShowContent("your encrypted text is:" + encryptedString);

            return(encryptedString);
        }