2. Install Encryption plugin
Install Anypoint Enterprise security as given in link -
https://docs.mulesoft.com/mule-user-guide/v/3.6/installing-anypoint-
enterprise-security
Detailed description regarding the Encryption is present at the mule
documentation page - https://docs.mulesoft.com/mule-user-
guide/v/3.7/pgp-encrypter
Field level XML encryption can be done using XML encryption, for field level
JSON encryption both JCE and PGP can be used.
For String or text files encryption PGP encryption should be used. It’s stricter
than JCE and XML.
3. PGP Encryption
While Using PGP encryption please provide public key and private key files with
‘.gpg’ extension.
Also provide the secret alias ID, secret passphrase and principal
Salesforce demo with PGP encryption is present here -
http://blogs.mulesoft.com/biz/anypoint-studio/pgp-encryption-and-salesforce-
integration-using-mulesoft%E2%80%99s-anypoint-platform/
4. XML/JCE encryption with key
You can provide the simple Base64 Encoded key in the XML/JCE encryption
5. XML/JCE encryption with key Store
While using key store for encryption/decryption keys provide the details as Key
store path, Key store Password, Key Password, Algorithm and Key.
Please make sure the key created is in AES 128 bit algorithm or match wat is
supported in mulesoft.
In key field provide the key store alias. Screenshot is given below.