Security is one the very important aspects when we are developing the integration solution especially in the banking, finance sectors etc. Whenever you want to send your data securely over the channel to third parties, it is very important that you send your data encrypted so it become unreadable for unauthorized entities. Mulesoft provided various Encryption Strategy to encrypt your message.
Encrypter instead of JCE Encrypter. Under Connector Configuration select Default Encrypter as XML. Select Encrypter to XML_ENCRYPTER. Under XML Encrypter Strategy Configuration for operation, select Define attributes radio button. Provide Key, Key Password (Optional). Select Algorithm and Encryption Mode. In XML Encrypter, you can encrypt particular field data instead of encrypting while data. You can provide the xpath of field that you need to encrypt.