We have developed an "assignment submission" tool to help with encrypting and submitting jar files. Essentially, you will write your stuff in a directory, jar the directory, copy the jar file to your submit directory and run our tool on the jar file.
Note: all submissions are to be done on hobbes.
Before we get to submissions, you should create a directory for this course under your home directory:
% cd % mkdir cs133(Don't type the percentage symbol - that's there merely to show the Unix prompt).
Here's how to submit an assignment, using the first exercise as an example. Substitute your actual Unix username in place of username below.
% jar cvf username1.jar username1This "jars" your username1 directory into a single jar file. You should see a username1.jar file in your cs151 directory.
% java -jar ~simha/submit/submit.jar -e qfgk9816 beavis1.jar beavis1.jar.cryptOf course, you should use your crypt key above. Here, the -e option specifies encryption (as opposed to decryption with the -d option).
% cp beavis1.jar.crypt ~/submit/.
% cd % chmod a+rx submit % cd submit % chmod a+r beavis1.jar.cryptAt this point, the TA will be able to copy over your encrypted file, decrypt it, and un-jar it to test your code. Anyone else can copy over your crypt file, but should not be able to decrypt it.