Encrypting and Decrypting InfoPath Form Data


This question comes up frequently:

Can I encrypt the XML data coming out of InfoPath?

The answer is “yes!”, and there is a wonderful article on MSDN that explains just how to do it, titled Extending the Save Functionality in InfoPath 2003. The article covers a lot of ground, and includes managed code samples showing how to perform data encryption during OnSaveRequest and decryption during OnLoad. Similar code can be used during OnSubmitRequest to encrypt the data before sending it out over the wire.


Comments (2)

  1. Prabhakar Jain says:

    Do you know if there are better features in Infopath Forms 2010 for encrypting the whole form? Also, any way set permission so that it is only visible to certain individuals.

    The above solution was for InfoPath 2003. In last 7 years, I am sure Microsoft though about smarter and better security features for InfdoPath Forms and Sharepoint. Security is basic requirements for most (if not all) of the forms.

  2. Gideon says:

    Is there a way of hiding the url of an infopath form in browser