% cd % mkdir submit % chmod a+rx submit
% cd % mkdir cs141Make sure you do not allow outside access to this directory.
% cd % cd cs141 % mkdir beavis1Note: don't forget to use YOUR username instead of beavis above. We will use the username beavis as an example for the remainder of these instructions.
% cd % cd cs141/beavis1 % lsYou should see a list of files in this directory.
% cd % cd cs141 % jar cvf beavis1.jar beavis1This will create a file called beavis1.jar in the directory cs141. This "jar" file is really a zip file containing everything that was in the beavis1 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.