In this article, I will brief about developing a custom function in BizTalk for encrypting and decrypting the sensitive information. Actually, the right place to encrypt and decrypt sensitive information is at the biztalk pipeline using custom component, which I would cover in later topic.
Create a class library project and add the reference of Microsoft.BizTalk.BaseFunctoids assembly and then derive our functoid from Microsoft.BizTalk.BaseFunctoids.
In the class construct provide the function name, function bitmaps to be displayed in the mapper, tool tip text, description and a functoid ID as shown. Specify category the functoid belongs to (Math, Logical, String etc..) and set input and output parameters restrictions and connection types. finally, specify the function to call.
Here is the encrpytion and decryption methods, compile the library place the dll in BizTalk Mapper folder then GAC it.
Create a new BizTalk Project, already Source, Internal Canonical and Target Schemas are defined. Let create a BizTalk map and load Source and Canonical as shown; the sensitive information in the source would be encrypted using custom functiod which we built. In order to add the custom function to Toolbox, right click on it then select choose items.
Then from the BizTalk Mapper tab; select the custom functiod as shown below.
Now, custom funtiod is available under the category we specified.
Another map Canonical to Target is added, where the information is decrypt using custom function and passed to target system.
Lets now test the both the maps and verify the results.
Encryption of Data,
Decryption of Data
Create a class library project and add the reference of Microsoft.BizTalk.BaseFunctoids assembly and then derive our functoid from Microsoft.BizTalk.BaseFunctoids.
In the class construct provide the function name, function bitmaps to be displayed in the mapper, tool tip text, description and a functoid ID as shown. Specify category the functoid belongs to (Math, Logical, String etc..) and set input and output parameters restrictions and connection types. finally, specify the function to call.
Here is the encrpytion and decryption methods, compile the library place the dll in BizTalk Mapper folder then GAC it.
Create a new BizTalk Project, already Source, Internal Canonical and Target Schemas are defined. Let create a BizTalk map and load Source and Canonical as shown; the sensitive information in the source would be encrypted using custom functiod which we built. In order to add the custom function to Toolbox, right click on it then select choose items.
Then from the BizTalk Mapper tab; select the custom functiod as shown below.
Now, custom funtiod is available under the category we specified.
Another map Canonical to Target is added, where the information is decrypt using custom function and passed to target system.
Lets now test the both the maps and verify the results.
Encryption of Data,
Decryption of Data
No comments:
Post a Comment
Note: only a member of this blog may post a comment.