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

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