String messageText="hello this is a test message";
Cipher cipher=encrypt2.getSymEncodingCipher();
byte[] encodedBytes=cipher.doFinal(messageText.getBytes());
assert !new String(encodedBytes).equals(messageText);
MessageDigest digest=MessageDigest.getInstance("MD5");
digest.reset();
digest.update(encrypt.getDesKey().getEncoded());
String symVersion=new String(digest.digest(), "UTF-8");
Message msg=new Message(null, null, encodedBytes);
msg.putHeader(ENCRYPT_ID, new ENCRYPT.EncryptHeader(ENCRYPT.EncryptHeader.ENCRYPT, symVersion));
Event event=new Event(Event.MSG, msg);
encrypt.up(event);