<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Encryption</title><link>https://www.infopathdev.com:443/forums/thread/54914.aspx</link><pubDate>Fri, 14 May 2010 22:22:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54914</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54914</wfw:commentRss><description>&lt;p&gt;I think you may need to alter your query statement in code prior to running it. It seems to me that you are instead altering the SQL statement for the main data connection. &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.dataconnection.execute(office.14).aspx"&gt;Here&amp;#39;s&lt;/a&gt; an MSDN page that may help.&lt;/p&gt;</description></item><item><title>Re: Encryption</title><link>https://www.infopathdev.com:443/forums/thread/54885.aspx</link><pubDate>Fri, 14 May 2010 12:22:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54885</guid><dc:creator>KidTech</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54885.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54885</wfw:commentRss><description>&lt;p&gt;Its is being done with a SSL cert on the web server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have the code to decrypt and it works but this is the issue.&lt;/p&gt;
&lt;p&gt;I created the InfoPath form via connection to the SQL DB on another server. Once the form was linked&amp;nbsp;I have the Query and Mydata fields. I created the entire form with only one query field (Application Date). When I look at the SQL Statement it is like this (abbreviated).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font size="3" face="Calibri"&gt;select &amp;quot;EmpLName&amp;quot;,&amp;quot;EmpFName&amp;quot;,&amp;quot;EmpMI&amp;quot;,&amp;quot;AppDate&amp;quot;,&amp;quot; ApplicationID&amp;quot;,&amp;quot;SSN_Encrypt&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;Tablename&amp;quot; as &amp;quot;Tablename&amp;quot;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Calibri"&gt;I tried doing this-&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;OPEN SYMMETRIC KEY &amp;quot;Keyname&amp;quot; (no quotes)&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;DECRYPTION BY CERTIFICATE &amp;quot;Certname&amp;quot;; (no quotes)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;select &amp;quot;EmpLName&amp;quot;,&amp;quot;EmpFName&amp;quot;,&amp;quot;EmpMI&amp;quot;,&amp;quot;AppDate&amp;quot;,&amp;quot; ApplicationID&amp;quot;,&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font face="Calibri"&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;CONVERT(char, DecryptByKey(keyname)) &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;AS &amp;#39;SSN&amp;#39;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;FROM dbo.Tablenamee&lt;/font&gt;&lt;font size="3"&gt;&amp;quot;&amp;nbsp; as &amp;quot;Tablename&amp;quot;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;What this does is take away my query field. It becomes unbound and I only have MyData fields avaiable in the datasource section. The run query cmd button works and the SSN comes in correctly but It brings in all applications submitted to the DB.&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;I need to be able to query on the appdate.&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;Hope this helps&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Encryption</title><link>https://www.infopathdev.com:443/forums/thread/54866.aspx</link><pubDate>Thu, 13 May 2010 21:55:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54866</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54866.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54866</wfw:commentRss><description>&lt;p&gt;Great! How is the SSN being encrypted?&lt;/p&gt;</description></item><item><title>Re: Encryption</title><link>https://www.infopathdev.com:443/forums/thread/54846.aspx</link><pubDate>Thu, 13 May 2010 16:29:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54846</guid><dc:creator>KidTech</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54846</wfw:commentRss><description>&lt;p&gt;Yes I have the code&lt;/p&gt;</description></item><item><title>Re: Encryption</title><link>https://www.infopathdev.com:443/forums/thread/54845.aspx</link><pubDate>Thu, 13 May 2010 16:22:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54845</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54845</wfw:commentRss><description>&lt;p&gt;Decrypting will require knowledge of how the SSN was originally encrypted. Do you have access to the code that the web application uses to encrypt the SSN? Or can the developer for that application tell you how the information is encrypted?&lt;/p&gt;
&lt;p&gt;You will need to use code to decrypt. You can find information on this at sites like &lt;a href="http://stackoverflow.com/questions/202011/encrypt-decrypt-string-in-net"&gt;StackOverflow&lt;/a&gt;, which may help you get started.&lt;/p&gt;</description></item><item><title>Encryption</title><link>https://www.infopathdev.com:443/forums/thread/54834.aspx</link><pubDate>Thu, 13 May 2010 14:07:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54834</guid><dc:creator>KidTech</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54834.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54834</wfw:commentRss><description>&lt;p&gt;I have an online web form that when submitted dumps into a SQLDB. I have created an InfoPath template that connects to that DB with all the associated fields. I have one query field (application date).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When I query the date all applications that were submittted come in correctly. This is where I am stuck-&lt;/p&gt;
&lt;p&gt;&amp;nbsp;One of the fields on the form is SSN- When the web form is submitted to the DB the SSN is encrypted. When I query the application date-all the data comes in but the SSN comes in encrypted.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;How&amp;nbsp;do I get the SSN converted back to what was typed in on the form. I have read to use custom code but I am new to InfoPath so where does it go or can someone point me to an article explaining how to do this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Russ&lt;/p&gt;</description></item></channel></rss>