public void ShouldDecipherImageWithFiltering()
        {
            string filePathToRead  = @"../../../Data/square_wave_encrypted.png";
            string filePathToWrite = @"../../../Data/square_wave_decrypted.png";

            imageBlockCipher.DecipherWithFiltering(filePathToRead, filePathToWrite);
        }
Пример #2
0
 private void DecryptImage(ImageBlockCipher imageBlockCipher)
 {
     DecryptButton.Enabled = false;
     Task.Run(AnimateDecryptingText);
     if (FilteringCheckBox.Checked)
     {
         imageBlockCipher.DecipherWithFiltering(FilepathTextBox.Text, SaveFileDialog.FileName);
     }
     else
     {
         DecipherWithoutFiltering(imageBlockCipher);
     }
     DecryptButton.Enabled = true;
 }