コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: tympaniplayer/ADFGVX
        public void TestLongExample()
        {
            var obfuscator = new ADFGVX("calf");

            var cipherText = obfuscator.EncryptMessage("Bradford County 4H leaders and the bradford county holstein club have joined forces again this year to plan and organize a 4h" +
                " heifer sale stop Our goal is to sell 70 calves and heifers along with some s***n feed etc stop if you are interested in consigning a calf or heifer please contact gary hennip stop");

            var plainText = obfuscator.DecryptMessage(cipherText);
        }
コード例 #2
0
        public void TestMethod1()
        {
            var obfuscator = new ADFGVX("code");

            var cipherText = obfuscator.EncryptMessage("hello world");

            var plainText = obfuscator.DecryptMessage(cipherText);

            Assert.AreEqual("HELLOWORLD", plainText);
        }
コード例 #3
0
ファイル: UnitTest1.cs プロジェクト: tympaniplayer/ADFGVX
        public void TestMethod1()
        {
            var obfuscator = new ADFGVX("code");

            var cipherText = obfuscator.EncryptMessage("hello world");

            var plainText = obfuscator.DecryptMessage(cipherText);

            Assert.AreEqual("HELLOWORLD", plainText);
        }
コード例 #4
0
        public void TestLongExample()
        {
            var obfuscator = new ADFGVX("calf");
            
            var cipherText = obfuscator.EncryptMessage("Bradford County 4H leaders and the bradford county holstein club have joined forces again this year to plan and organize a 4h" +
                " heifer sale stop Our goal is to sell 70 calves and heifers along with some s***n feed etc stop if you are interested in consigning a calf or heifer please contact gary hennip stop");

            var plainText = obfuscator.DecryptMessage(cipherText);


        }