char[] buffer changed to byte[] buffer
added encrypt and decrypt Message methods