message is encrypted before encoding