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

            imageBlockCipher.CipherWithFiltering(filePathToRead, filePathToWrite);
        }
Exemplo n.º 2
0
 private void EncryptImage(ImageBlockCipher imageBlockCipher)
 {
     EncryptButton.Enabled = false;
     Task.Run(AnimateEncryptingText);
     if (FilteringCheckBox.Checked)
     {
         imageBlockCipher.CipherWithFiltering(FilepathTextBox.Text, SaveFileDialog.FileName);
     }
     else
     {
         CipherWithoutFiltering(imageBlockCipher);
     }
     EncryptButton.Enabled = true;
 }