Encrypts messages to be transmitted in a confidential way.