public ProductionCipher(CaesarCipher caesarCipher, RotateCipher rotateCipher, XorCipher xorCipher) { this.caesarCipher = caesarCipher; this.rotateCipher = rotateCipher; this.xorCipher = xorCipher; }
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(); }