DEV Community

Daniel Jonathan
Daniel Jonathan

Posted on • Originally published at biztalkdj.blogspot.com on

Encryption and Decryption of Sensitive Information using Pipeline Components in BizTalk

In this article, I will brief on encrypting and decrypting the sensitive information using custom pipeline component in BizTalk.

Lets create a class library project to implement Execute pipeline component as shown below, relevant reference are added to develop custom component.

1

Now, lets define properties to specify the cryption type (encryption or decryption) on data and data node as shown. Cryption Type is defined as enum type as below.

1

Here is the implementation of IPersistPropertyBag interface, for CryptionType and Element Properties.

1

Implementation of IComponent Interface is shown below, based on the CryptionType property and Element Name specify, the data would be encrypted or decrypted.

1

Internal Encryption and Decryption implementation,

1

Lets create encryption receive pipeline and bring in EncryptDecrypt Component to Decode stage and define the properties as below.

[1][]

Similarly, Send Pipeline to Decrypt the information

1

Deploy the solution and define a receive port and location then associate the EncryptData Receive Pipeline as shown below.

1

Similarly, define two send ports to subscribe the message received on the receive, 1 send port will have DecryptData Send Pipeline and other would be a simple pass through pipeline.

1

Pass through Send Pipeline, subscribes the encrypted message.

1

Process messages and verify the result.

1

This mechanism allow us to transfer sensitive information in a is a secured manner and thus 3rd party system would be able to access the information.

Top comments (0)