Exemplo n.º 1
0
 public ProductionCipher(CaesarCipher caesarCipher,
                         RotateCipher rotateCipher,
                         XorCipher xorCipher)
 {
     this.caesarCipher = caesarCipher;
     this.rotateCipher = rotateCipher;
     this.xorCipher    = xorCipher;
 }
Exemplo n.º 2
0
        public static string RotateDecrypt(this string value, int key)
        {
            var rotateCipher = new RotateCipher();

            return(rotateCipher.Encrypt(value, -key));
        }
Exemplo n.º 3
0
 public void TestCanCreate()
 {
     cipher = new RotateCipher();
     cipher.Should().NotBeNull();
 }