Пример #1
0
        public void ShouldDecipherWithoutFilteringImage()
        {
            string       filePathToRead   = @"../../../Data/square_wave_encrypted.png";
            string       filePathToWrite  = @"../../../Data/square_wave_decrypted.png";
            List <Chunk> chunks           = PNGFile.Read(filePathToRead);
            List <Chunk> parsedChunks     = ChunkParser.Parse(chunks);
            List <Chunk> decipheredChunks = imageBlockCipher.DecipherWithoutFiltering(parsedChunks);

            PNGFile.Write(filePathToWrite, decipheredChunks);
        }
Пример #2
0
        private void DecipherWithoutFiltering(ImageBlockCipher imageBlockCipher)
        {
            List <Chunk> parsedChunks     = ReadAndParseChunks();
            List <Chunk> decipheredChunks = imageBlockCipher.DecipherWithoutFiltering(parsedChunks);

            PNGFile.Write(SaveFileDialog.FileName, decipheredChunks);
        }