Пример #1
0
        private ICipher GetHexadecimalCipher()
        {
            AggregateCipher cipher = new AggregateCipher();
            cipher.AddCipher(new RadixCipher(16, 2));
            cipher.AddCipher(new GroupingCipher(2));

            return cipher;
        }
Пример #2
0
        private ICipher GetStuffingCipher()
        {
            AggregateCipher cipher = new AggregateCipher();
            cipher.AddCipher(new StuffingCipher(1));
            cipher.AddCipher(new GroupingCipher(5));

            return cipher;
        }
Пример #3
0
        private ICipher GetBinaryCipher()
        {
            AggregateCipher cipher = new AggregateCipher();
            cipher.AddCipher(new RadixCipher(2, 8));
            cipher.AddCipher(new GroupingCipher(8));

            return cipher;
        }