Contact Us 1-800-596-4880

Cryptography Module - Additional Configuration

After you complete basic Cryptography Module configuration, you can perform additional configuration tasks.

Configure Use Random Initialization Vectors

Configure the Use random IVs field to use random initialization vectors (IVs). If you configure this field, the decryption algorithm expects the IVs to be added to the beginning of the ciphertext during decryption.

Follow these steps for the configuration:

  1. In Anypoint Studio, drag a Cryptography Module operation to your flow, for example Jce sign.

  2. Select the operation from the flow.

  3. In the operation configuration screen, click the plus sign to access the module global configuration.

  4. In the Global Element Properties window, enable the Use random IVs field.

A configuration setting for Crypto JCE with options for keystore and random IV usage

In the XML editor window, the configuration looks like this:

crypto:jce-config name="Crypto_Jce" doc:name="Crypto Jce" keystore="/Users/MuleSoft/Desktop/jcekeystore.jks" password="mulesoft" useRandomIVs="true">
		<crypto:jce-key-infos >
			<crypto:jce-symmetric-key-info keyId="key100" alias="jceclient100" password="mulesoft" />
		</crypto:jce-key-infos>
	</crypto:jce-config>
xml
View on GitHub