This project is a simple archiver for images (jpg-files). The images can be writed in a single file. Or can be encrypt or decrypt. The program used the XOR-cipher
warning: The encrypt and decrypt algorithm isn't save! Keys can be only between 0 and 255 !
- gcc --- C-compiler
Note: You can change the standard C-compiler in the Makefile. You simple changed the variable CC in the Makefile.
For building the project type in the console:
$ makeAfter that you get the executable compress.
For cleaning type in the console
$ make cleanYou fill find some example images in the directory images. (CC0 license)
For create a simple archive:
$ ./compress -c images/baum1.jpg images/baum2.jpg You get a file called out.
For extracting the file out:
$ ./compress -e out For encrypt a simple archive:
$ ./compress -en KEY images/baum1.jpg images/baum2.jpg KEYcan be a value between 0 up to 255.
For decrypt a simple archive:
$ ./compress -de KEY out warning: The encrypt and decrypt algorithm isn't save! Keys can be only between 0 and 255 !