Create a tool that will prevent opening an image using editing software; i.e. hide the content. The project is protects a jpg file, although compatible with other types.
Java, Python or C++ for Linux OS
The requirements are very simple:
1. The tool should ask the user 1: hide or 2: unhide?
2. The user specifies the type of the files the tool should modify: A list of options to choose from should be printed on the screen with a default value indicated: JPG.
3. The user enters a code/password to be used to hide the file.
4. The user provides the full path to a folder where the jpg pictures [login to view URL] tools should print the list of files with the type specified in [login to view URL] tool has to list the files affected by the modifications; either hiding or unhiding.
Hiding the files should only be done by changing the first byte of the header code. Unhiding should be done by restoring the original value of the first byte of the header. This means you have to find a way to keep track of the changes you made.
Lastly the code should be resilient against errors and wrong input. It can not crash in such cases. Errors and wrong input should be addressed with printing out a message to the user.