split encrypted and plain part in messages
formatted code