public ClientBehavior(BlockCipherMode modeChoice)
        {
            this.modeChoice = modeChoice;
            _sender         = GetClientSocket();
            this.modeFinal  = GetFinalMode();
            Debug("Final mode chosen");
            alg = getSecurityAlgorithm();
            return;

            var inputList     = "heyy looka this 1234g5g5asd789a9sd3".SplitInBlocks();
            var encryptedList = alg.EncryptList(inputList);
            var decryptedlist = alg.DecryptList(encryptedList);

            Debug(inputList.ToString());
            Debug(encryptedList.ToString());
            Debug(decryptedlist.ToString());
        }
Beispiel #2
0
        private static void SettingSecrets()
        {
            var encryptionMode = SetCryptoAlgorithm();

            return;

            SendKeysToNodes(encryptionMode);

            var inputList     = "heyy looka this 1234g5g5asd789a9sd3".SplitInBlocks();
            var encryptedList = _algorithm.EncryptList(inputList);
            var decryptedlist = _algorithm.DecryptList(encryptedList);



            Console.WriteLine(inputList.ToString());
            Console.WriteLine(encryptedList.ToString());
            Console.WriteLine(decryptedlist.ToString());
        }