コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: hiptopjones/Enigma
        private ICipher GetHexadecimalCipher()
        {
            AggregateCipher cipher = new AggregateCipher();
            cipher.AddCipher(new RadixCipher(16, 2));
            cipher.AddCipher(new GroupingCipher(2));

            return cipher;
        }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: hiptopjones/Enigma
        private ICipher GetStuffingCipher()
        {
            AggregateCipher cipher = new AggregateCipher();
            cipher.AddCipher(new StuffingCipher(1));
            cipher.AddCipher(new GroupingCipher(5));

            return cipher;
        }
コード例 #3
0
ファイル: MainPage.xaml.cs プロジェクト: hiptopjones/Enigma
        private ICipher GetBinaryCipher()
        {
            AggregateCipher cipher = new AggregateCipher();
            cipher.AddCipher(new RadixCipher(2, 8));
            cipher.AddCipher(new GroupingCipher(8));

            return cipher;
        }