The Provier class was incorrectly written for 'csec2011.AESCipher', which was causing errors. Changed to 'csec2012...'. Also added the Cipher instantation to Chat.java