This code is for a assignment given by our instructor Prof. Ragesh Aggarwal. The details of the assignment can be found on this link here.
You just nned a java compiler installed to run the code and any image viewer to see the images.
To compile the code
javac cipher.java
To run the code
java cipher <input-encrypted-image> <name-of-your-output-file>