<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Security, encryption</title><link>https://www.infopathdev.com:443/forums/thread/46079.aspx</link><pubDate>Thu, 20 Aug 2009 07:51:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46079</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46079.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46079</wfw:commentRss><description>&lt;p&gt;well you can encrypt the data in the infopath form before saving or submiting it &lt;/p&gt;
&lt;p&gt;below is the code to encrypt a field in InfoPath 2007. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rijndael rKey = new RijndaelManaged();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator xnFormName = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator totalNode = this.MainDataSource.CreateNavigator();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnFormName = totalNode.SelectSingleNode(&amp;quot;/my:myFields/my:field1&amp;quot;, this.NamespaceManager);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string totalNodeOriginal = xnFormName.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; byte[] totalInfo =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Text.Encoding.Unicode.GetBytes(xnFormName.ToString());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MemoryStream ms = new MemoryStream();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CryptoStream csBase64 = new CryptoStream(ms,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new ToBase64Transform(), CryptoStreamMode.Write);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CryptoStream csRijndael = new CryptoStream(csBase64,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rKey.CreateEncryptor(), CryptoStreamMode.Write);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; csRijndael.Write(totalInfo, 0, (int)totalInfo.Length);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; csRijndael.FlushFinalBlock();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string base64enc = System.Text.Encoding.ASCII.GetString&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ms.GetBuffer(), 0, (int)ms.Length);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnFormName.SetValue(base64enc);&lt;/p&gt;
&lt;p&gt;hope this solves your problem&lt;/p&gt;</description></item><item><title>Re: Security, encryption</title><link>https://www.infopathdev.com:443/forums/thread/8151.aspx</link><pubDate>Thu, 25 Jan 2007 20:43:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8151</guid><dc:creator>sscarcella</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8151.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8151</wfw:commentRss><description>Does signing the form keep you from being able to see the data connection username and password?&lt;br /&gt;&lt;br /&gt;Is there another way to just protect the username and password used for the data connection?  I build all the security I want into the form but I dont want users to have any access to just connect to the SQL server and see things in the tables theyre not supposed to.  If you use the default windows authentication and give users Select, Insert and Update rights in order to enter data into the form, I dont know how this can be prevented... &lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;Can you secure the data connection if you do it via code?  and if so are there any examples of this?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;We've used signing for many projects. It works well.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Security, encryption</title><link>https://www.infopathdev.com:443/forums/thread/8150.aspx</link><pubDate>Wed, 02 Nov 2005 04:33:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8150</guid><dc:creator>qwer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8150.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8150</wfw:commentRss><description>OK, after several hours of experimenting in InfoPath, I have found out that if you save a SIGNED xml form and edit it in notepad and then opening it in InfoPath, InfoPath will determine for you whether the file's data was changed. But the user will have to access the tools &amp;gt; digital signature &amp;gt; view signed form &amp;gt; and read message about breach of form data. Which is a bit too much for the normal user I think, but nonetheless, it's good to see this mechanism exist. And I wish to continue this issue on a new thread.&lt;br /&gt;&lt;br /&gt;And I did find out that InfoPath does not provide encryption for the xml file.</description></item><item><title>Re: Security, encryption</title><link>https://www.infopathdev.com:443/forums/thread/8149.aspx</link><pubDate>Tue, 01 Nov 2005 21:24:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8149</guid><dc:creator>qwer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8149</wfw:commentRss><description>Thanks for the article you posted. I have attempted your suggestion of signing the form entirely or partially and it successfully protected my data in InfoPath. However, it did not solve my problem of tampering the XML file transmitted over an email attachment. If I receive a submitted form over email, I can still download it and change the data and save in notepad. When I open the modified form, the hacked data will appear and InfoPath will protect the fake data.&lt;br /&gt;&lt;br /&gt;Is this what a DigiSig only meant to do (protect data in InfoPath)? Is DigiSig the right solution for my manually-editing-xml-in-notepad problem? Or there are alternatives for this?</description></item><item><title>Re: Security, encryption</title><link>https://www.infopathdev.com:443/forums/thread/8148.aspx</link><pubDate>Tue, 01 Nov 2005 06:58:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8148</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8148.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8148</wfw:commentRss><description>We've used signing for many projects. It works well.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Security, encryption</title><link>https://www.infopathdev.com:443/forums/thread/8147.aspx</link><pubDate>Mon, 31 Oct 2005 22:12:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8147</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8147</wfw:commentRss><description>Good question.  I was actually at a Microsoft Code Camp on Security over the weekend in Washington, DC and there was a speaker going over XML Signatures.  You can implement signing of XML out of the box with InfoPath.  I have only played around with it, but I did not actually implement.  Here are a link you can use to start your research.&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_10.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_10.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This lab discusses how to sign the entire document or sign a piece of your XML.</description></item><item><title>Security, encryption</title><link>https://www.infopathdev.com:443/forums/thread/5069.aspx</link><pubDate>Mon, 31 Oct 2005 21:54:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5069</guid><dc:creator>qwer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5069</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;My organisation is looking to transfer forms over email and we realise that people can potential tamper with the XML before sending it off. Does anyone know if Infopath provides encryption technology to secure the form during transfer?&lt;br /&gt;&lt;br /&gt;Is there a better way (perhaps using standard functions in InfoPath) to check whether a form has been tampered with before sending?</description></item></channel></rss>