<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cyberstarweb</title>
	<atom:link href="http://cyberstarweb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cyberstarweb.com</link>
	<description>Computer, Web, and Software Services</description>
	<lastBuildDate>Fri, 23 Jul 2010 01:16:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Pug Sings ‘Batman’ Theme</title>
		<link>http://cyberstarweb.com/2010/07/pug-sings-batman-theme/</link>
		<comments>http://cyberstarweb.com/2010/07/pug-sings-batman-theme/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 01:15:34 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cyberstarweb.com/?p=143</guid>
		<description><![CDATA[I can&#8217;t quit watching this pug sing BATMAN!]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/GrIp3k5pJQM&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/GrIp3k5pJQM&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed></object></p>
<p>I can&#8217;t quit watching this pug sing BATMAN!</p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2010/07/pug-sings-batman-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to position a page within an iframe using CSS</title>
		<link>http://cyberstarweb.com/2010/06/how-to-position-a-page-within-an-iframe-using-css/</link>
		<comments>http://cyberstarweb.com/2010/06/how-to-position-a-page-within-an-iframe-using-css/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 03:10:58 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cyberstarweb.com/?p=87</guid>
		<description><![CDATA[Here is a useful technique to position a page within an iframe using CSS. This allows to show part of a web page within the iframe and positioned to a specific spot on the page within the iframe. Here is an example that shows the &#8220;In the News&#8221; box on the Yahoo home page: This [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a useful technique to position a page within an iframe using CSS. This allows to show part of a web page within the iframe and positioned to a specific spot on the page within the iframe. Here is an example that shows the &#8220;In the News&#8221; box on the Yahoo home page:   </p>
<div id="outerdiv"><iframe id="inneriframe" src="http://www.yahoo.com/" scrolling="no"></iframe></div>
<p>This is the CSS and html code to accomplish the task:</p>
<pre>
<code>&lt;style&gt;
#outerdiv
{
width:446px;
height:246px;
overflow:hidden;
position:relative;
}

#inneriframe
{
position:absolute;
top:-412px;
left:-318px;
width:1280px;
height:1200px;
}
&lt;/style&gt;
&lt;div id='outerdiv '&gt;
&lt;iframe src="http://www.yahoo.com/" id='inneriframe' scrolling=no &gt;&lt; /iframe&gt;
&lt;/div&gt;</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2010/06/how-to-position-a-page-within-an-iframe-using-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Real Estate Transaction Standard (RETS)</title>
		<link>http://cyberstarweb.com/2009/11/the-real-estate-transaction-standard-rets/</link>
		<comments>http://cyberstarweb.com/2009/11/the-real-estate-transaction-standard-rets/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 17:23:53 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[RETS - Real Estate Transaction Standard]]></category>
		<category><![CDATA[RETS]]></category>

		<guid isPermaLink="false">http://cyberstarweb.dkm/?p=4</guid>
		<description><![CDATA[I recently did a project for a local real estate office, and I found it nessecary to learn more about the &#8216;The Real Estate Transaction Standard (RETS)&#8217; system than I ever needed to know. However, it is an interesting system that facilitates data transfer between partners in the real estate industry. It is miles ahead [...]]]></description>
			<content:encoded><![CDATA[<p>I recently did a project for a local real estate office, and I found it nessecary to learn more about the <strong>&#8216;The Real Estate Transaction Standard (RETS)&#8217; </strong>system than I ever needed to know. However, it is an interesting system that facilitates data transfer between partners in the real estate industry. It is miles ahead of the antiquated method of downloading megabytes of csv files each night in order to update the local databases &#8211; a very slow, painful and time consuming process.</p>
<p>The RETS system allows us to update our local real estate databases throughout the day, and each update takes only minutes to do. What&#8217;s more, it has required no human intervention since it started running over 6 months ago. It has been a set it and forget it operation, which I like very much.</p>
<p>I was able to script a RETS &#8220;replicator&#8221; that keeps our local databases in sync with the main MLS RETS databases, so that MLS listings appear in our local database only very shortly after entry into the main RETS systems. The replicator is written in vbscript as an .asp class, and right now is scheduled on windows task scheduler to run every couple hours thoughout the day. It utilizes the open-source ezRETS ODBC Driver available from <em>California Association of REALTORS (C.A.R.) at <a href="http://www.crt.realtors.org/projects/rets/ezrets/">http://www.crt.realtors.org/projects/rets/ezrets/</a></em></p>
<p>After experimenting with various methods to connect to RETS and script a solution, it was clear that ezRETS was the winner. I plan to make the RETS replicator .asp class available here soon. It has been tested and running smoothly on a Windows 2000 server for the better part of the last year.</p>
<p>Requirements to run the RETS replicator .asp class application are the open-source ezRETS ODBC Driver, and a realtor login to the RETS system.</p>
<p>Our local RETS system uses a a Rapattoni Rets MLS Server, and the script is set up with the field names for our local MLS server. Modifications to the field names will probably be needed to enable the script to talk to other servers.</p>
<p>I did learn that even though the RETS system is striving to institute standards in real estate data transfer, the RETS MLS systems still differ somewhat in their database setups. Field names can vary on different types of MLS servers and even within the same brands of RETS servers from different RETS MLS offices. RETS MLS systems are not databases in the traditional sense like SQL Server or MySQL, but are instead IDX systems with pointers to the records. This can be somewhat tricky for developers to deal with when starting to develop a RETS solution. This is where ezRets really helps, it converts traditional SQL statements into IDX commands that the RETS MLS system understands.</p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2009/11/the-real-estate-transaction-standard-rets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Send encrypted email using certificates in .Net</title>
		<link>http://cyberstarweb.com/2009/01/send-encrypted-email-using-certificates-in-net/</link>
		<comments>http://cyberstarweb.com/2009/01/send-encrypted-email-using-certificates-in-net/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:00:47 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Email encryption]]></category>
		<category><![CDATA[Encrypted email]]></category>

		<guid isPermaLink="false">/post/Send-encrypted-email-using-certificates-in-Net.aspx</guid>
		<description><![CDATA[This is the .net code needed to send encrypted email using secure certificates in .net. Both VB and C# versions are provided below. There is no need to rely on third party components to do this, it is built-in to .net. The email will then be viewable in any modern email client that supports secure [...]]]></description>
			<content:encoded><![CDATA[<p>This is the .net code needed to send encrypted email using secure certificates in .net. Both VB and C# versions are provided below. There is no need to rely on third party components to do this, it is built-in to .net.    </p>
<p>The email will then be viewable in any modern email client that supports secure certificates. But it will only be viewable if the email recipient has your certificate installed.     </p>
<p>You may create your own private email cetificates using tools like the openssl toolkit. Email certificates are also free at most of the major ssl providers.     </p>
<p>Also see the <a href="/post/Send-encrypted-email-using-certificates-in-PHP.aspx">PHP version</a> of encrypted emails on this site that sends encrypted emails.     </p>
<p>In VB you must also add a reference to System.Security in your project in Visual Studio Express.</p>
<p>Below are the VB.NET and C# versions of the code for encrypted emails using ssl certificates:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">Imports</span> <span style="color: #0000ff">Namespace</span>=System.IO</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">Imports</span> System.Net.Mail</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">Imports</span> System.Security.Cryptography.X509Certificates</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">Imports</span> System.Security.Cryptography.Pkcs</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">Class</span> EncryptEmail</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">Shared</span> <span style="color: #0000ff">Sub</span> Main(<span style="color: #0000ff">ByVal</span> args() <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">  SendEncryptedEmail(<span style="color: #006080">"test.pfx"</span>, <span style="color: #006080">"test.cer"</span>, <span style="color: #006080">""</span><span style="color: #006080">"Somebody"</span><span style="color: #006080">" "</span>, <span style="color: #006080">""</span><span style="color: #006080">"Somebody"</span><span style="color: #006080">" "</span>, <span style="color: #006080">"Test VB Encrypted HTML EMail"</span>, <span style="color: #006080">"This email is encrypted and signed."</span>, <span style="color: #006080">"localhost"</span>, 25, <span style="color: #0000ff">False</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">End</span> <span style="color: #0000ff">Sub</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">    <span style="color: #0000ff">Shared</span> <span style="color: #0000ff">Sub</span> SendEncryptedEmail(<span style="color: #0000ff">ByVal</span> SigningCertPath <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>, <span style="color: #0000ff">ByVal</span> EncryptingCertPath <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>, <span style="color: #0000ff">ByVal</span> [<span style="color: #0000ff">To</span>] <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>, <span style="color: #0000ff">ByVal</span> From <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>, <span style="color: #0000ff">ByVal</span> Subject <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>, <span style="color: #0000ff">ByVal</span> Body <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>, <span style="color: #0000ff">ByVal</span> SmtpServer <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>, <span style="color: #0000ff">ByVal</span> SmtpPort <span style="color: #0000ff">As</span> <span style="color: #0000ff">Integer</span>, <span style="color: #0000ff">ByVal</span> HTML <span style="color: #0000ff">As</span> <span style="color: #0000ff">Boolean</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> SignCert <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> X509Certificate2(SigningCertPath, <span style="color: #006080">"password"</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> EncryptCert <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> X509Certificate2(EncryptingCertPath, <span style="color: #006080">""</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> Message <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> StringBuilder()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        Message.AppendLine(<span style="color: #006080">"Content-Type: text/"</span> + IIf(HTML, <span style="color: #006080">"html"</span>, <span style="color: #006080">"plain"</span>) + <span style="color: #006080">"; charset="</span><span style="color: #006080">"iso-8859-1"</span><span style="color: #006080">""</span>) <span style="color: #008000">'TODO: For performance reasons this should be changed to nested IF statements</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        Message.AppendLine(<span style="color: #006080">"Content-Transfer-Encoding: 7bit"</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        Message.AppendLine()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        Message.AppendLine(Body)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> BodyBytes <span style="color: #0000ff">As</span> <span style="color: #0000ff">Byte</span>() = Encoding.ASCII.GetBytes(Message.ToString())</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> ECms <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> EnvelopedCms(<span style="color: #0000ff">New</span> ContentInfo(BodyBytes))</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> Recipient <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> CmsRecipient(SubjectIdentifierType.IssuerAndSerialNumber, EncryptCert)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        ECms.Encrypt(Recipient)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> EncryptedBytes <span style="color: #0000ff">As</span> <span style="color: #0000ff">Byte</span>() = ECms.Encode()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> Cms <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> SignedCms(<span style="color: #0000ff">New</span> ContentInfo(EncryptedBytes))</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> Signer <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> CmsSigner(SubjectIdentifierType.IssuerAndSerialNumber, SignCert)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        Cms.ComputeSignature(Signer)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> SignedBytes <span style="color: #0000ff">As</span> <span style="color: #0000ff">Byte</span>() = Cms.Encode()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> Msg <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> MailMessage()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        Msg.<span style="color: #0000ff">To</span>.Add(<span style="color: #0000ff">New</span> MailAddress([<span style="color: #0000ff">To</span>]))</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        Msg.From = <span style="color: #0000ff">New</span> MailAddress(From)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        Msg.Subject = Subject</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> ms <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> MemoryStream(EncryptedBytes)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> av <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> AlternateView(ms, <span style="color: #006080">"application/pkcs7-mime; smime-type=signed-data;name=smime.p7m"</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        Msg.AlternateViews.Add(av)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        <span style="color: #0000ff">Dim</span> smtp <span style="color: #0000ff">As</span> <span style="color: #0000ff">New</span> SmtpClient(SmtpServer, SmtpPort)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        smtp.UseDefaultCredentials = <span style="color: #0000ff">True</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">        smtp.Send(Msg)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">    <span style="color: #0000ff">End</span> <span style="color: #0000ff">Sub</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">End</span> Class</pre>
</p></div>
</div>
<p>
  <br />Below is the c# code </p>
<p></p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">using</span> System;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">using</span> System.IO;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">using</span> System.Text;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">using</span> System.Net.Mail;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">using</span> System.Security.Cryptography.Pkcs;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">using</span> System.Security.Cryptography.X509Certificates;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">namespace</span> EncryptedSMIME</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">{</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">   <span style="color: #0000ff">class</span> Program</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">   {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">       <span style="color: #0000ff">static</span> <span style="color: #0000ff">void</span> Main(<span style="color: #0000ff">string</span>[] args)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">       {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           SendEncryptedEmail(<span style="color: #006080">"Cert.pfx"</span>, <span style="color: #006080">"thawte.cer"</span>,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">               <span style="color: #006080">""Noah Body" "</span>,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">               <span style="color: #006080">""John Doe" "</span>,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">               <span style="color: #006080">"Test C# Encrypted HTML EMail"</span>,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">               <span style="color: #006080">"This email is encrypted and signed."</span>,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">               <span style="color: #006080">"smtp.singingeels.com"</span>, 25, <span style="color: #0000ff">false</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">       }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">       <span style="color: #0000ff">static</span> <span style="color: #0000ff">void</span> SendEncryptedEmail(</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           <span style="color: #0000ff">string</span> SigningCertPath, <span style="color: #0000ff">string</span> EncryptingCertPath,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           <span style="color: #0000ff">string</span> To, <span style="color: #0000ff">string</span> From, <span style="color: #0000ff">string</span> Subject, <span style="color: #0000ff">string</span> Body,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           <span style="color: #0000ff">string</span> SmtpServer, <span style="color: #0000ff">int</span> SmtpPort, <span style="color: #0000ff">bool</span> HTML)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">       {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           X509Certificate2 SignCert = <span style="color: #0000ff">new</span> X509Certificate2(SigningCertPath, <span style="color: #006080">"password"</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           X509Certificate2 EncryptCert = <span style="color: #0000ff">new</span> X509Certificate2(EncryptingCertPath, <span style="color: #006080">""</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           StringBuilder Message = <span style="color: #0000ff">new</span> StringBuilder();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           Message.AppendLine(<span style="color: #006080">"Content-Type: text/"</span> + ((HTML) ? <span style="color: #006080">"html"</span> : <span style="color: #006080">"plain"</span>) +</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">               <span style="color: #006080">"; charset="iso-8859-1""</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           Message.AppendLine(<span style="color: #006080">"Content-Transfer-Encoding: 7bit"</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           Message.AppendLine();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           Message.AppendLine(Body);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           <span style="color: #0000ff">byte</span>[] BodyBytes = Encoding.ASCII.GetBytes(Message.ToString());</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           EnvelopedCms ECms = <span style="color: #0000ff">new</span> EnvelopedCms(<span style="color: #0000ff">new</span> ContentInfo(BodyBytes));</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           CmsRecipient Recipient = <span style="color: #0000ff">new</span> CmsRecipient(</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">               SubjectIdentifierType.IssuerAndSerialNumber, EncryptCert);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           ECms.Encrypt(Recipient);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           <span style="color: #0000ff">byte</span>[] EncryptedBytes = ECms.Encode();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           SignedCms Cms = <span style="color: #0000ff">new</span> SignedCms(<span style="color: #0000ff">new</span> ContentInfo(EncryptedBytes));</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           CmsSigner Signer = <span style="color: #0000ff">new</span> CmsSigner</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">               (SubjectIdentifierType.IssuerAndSerialNumber, SignCert);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           Cms.ComputeSignature(Signer);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           <span style="color: #0000ff">byte</span>[] SignedBytes = Cms.Encode();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           MailMessage Msg = <span style="color: #0000ff">new</span> MailMessage();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           Msg.To.Add(<span style="color: #0000ff">new</span> MailAddress(To));</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           Msg.From = <span style="color: #0000ff">new</span> MailAddress(From);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           Msg.Subject = Subject;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           MemoryStream ms = <span style="color: #0000ff">new</span> MemoryStream(EncryptedBytes);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           AlternateView av = <span style="color: #0000ff">new</span> AlternateView(ms,</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">               <span style="color: #006080">"application/pkcs7-mime; smime-type=signed-data;name=smime.p7m"</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           Msg.AlternateViews.Add(av);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           SmtpClient smtp = <span style="color: #0000ff">new</span> SmtpClient(SmtpServer, SmtpPort);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">           smtp.UseDefaultCredentials = <span style="color: #0000ff">true</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">           smtp.Send(Msg);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">       }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">   }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
</p></div>
</div>
<p>
  <br />Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/encrypted%20email" rel="tag">encrypted email</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2009/01/send-encrypted-email-using-certificates-in-net/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Send encrypted email using certificates in PHP</title>
		<link>http://cyberstarweb.com/2009/01/send-encrypted-email-using-certificates-in-php/</link>
		<comments>http://cyberstarweb.com/2009/01/send-encrypted-email-using-certificates-in-php/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 18:43:18 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Email encryption]]></category>
		<category><![CDATA[Encrypted email]]></category>

		<guid isPermaLink="false">/post/Send-encrypted-email-using-certificates-in-PHP.aspx</guid>
		<description><![CDATA[This is the PHP code needed to send encrypted email using secure certificates in PHP. There is no need to rely on third party components to do this, it is built-in to PHP. The email will then be viewable in any modern email client that supports secure certificates. But it will only be viewable if [...]]]></description>
			<content:encoded><![CDATA[<p>This is the PHP code needed to send encrypted email using secure certificates in PHP. There is no need to rely on third party components to do this, it is built-in to PHP.    </p>
<p>The email will then be viewable in any modern email client that supports secure certificates. But it will only be viewable if the recipient has your certificate installed.     </p>
<p>You may create your own private email cetificates using tools like the openssl toolkit. Email certificates are also free at most of the major ssl providers.     </p>
<p>Also see the <a href="/post/Send-encrypted-email-using-certificates-in-Net.aspx">.net version</a> of encrypted emails on this site that sends encrypted and signed emails.     </p>
<div class="csharpcode-wrapper">
<div class="csharpcode">
<pre class="alt"><span class="lnum"></span></pre>
<pre class="alt"><span class="lnum"></span></pre>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">// Setup mail headers.</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">$headers = array("From" =<span style="color: #0000ff">></span> "someone@example.com", "To" =<span style="color: #0000ff">></span> "someone-else@example.com", "Cc" =<span style="color: #0000ff">></span> "spam@somewhere.org", "Subject" =<span style="color: #0000ff">></span> "Encrypted mail readable with most clients", "X-Mailer" =<span style="color: #0000ff">></span> "PHP/".phpversion());</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">// Get the public key certificate.</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$pubkey = file_get_contents("C:\test.cer");</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">// Remove some double headers for mail()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">$headers_msg = $headers;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">unset($headers_msg['To'], $headers_msg['Subject']);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$data = <span style="color: #0000ff"><<</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">This email is Encrypted!</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">You must have my certificate to view this email!</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">Me</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">EOD;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">//write msg to disk</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$fp = fopen("C:\msg.txt", "w");</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">fwrite($fp, $data);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">fclose($fp);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">// Encrypt message</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">openssl_pkcs7_encrypt("C:\msg.txt","C:\enc.txt",$pubkey,$headers_msg,PKCS7_TEXT,1);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">// Seperate headers and body for mail()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$data = file_get_contents("C:\Inetpub\wwwroot\WIP\PHPEncrypt\enc.txt");</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">$parts = explode("\n\n", $data, 2);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">// Send mail</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">mail($headers['To'], $headers['Subject'], $parts[1], $parts[0]);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">// Remove encrypted message (not fot debugging)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">//unlink("msg.txt");</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">//unlink("enc.txt");</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">?<span style="color: #0000ff">></span></pre>
</p></div>
</p></div>
<pre class="alt"><span class="lnum"></span></pre>
<pre class="alt"><span class="lnum">   </span></eod>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/encrypted%20email" rel="tag">encrypted email</a></pre>
</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2009/01/send-encrypted-email-using-certificates-in-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Shoot Yourself in the Foot in Any Programming Language</title>
		<link>http://cyberstarweb.com/2008/07/how-to-shoot-yourself-in-the-foot-in-any-programming-language/</link>
		<comments>http://cyberstarweb.com/2008/07/how-to-shoot-yourself-in-the-foot-in-any-programming-language/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 19:13:03 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">/post/How-to-Shoot-Yourself-in-the-Foot-in-Any-Programming-Language.aspx</guid>
		<description><![CDATA[The proliferation of modern programming languages (all of which seem to have stolen countless features from one another) sometimes makes it difficult to remember what language you’re currently using. This guide is offered as a public service to help programmers who find themselves in such dilemmas. C You shoot yourself in the foot. C++ You [...]]]></description>
			<content:encoded><![CDATA[<p>The proliferation of modern programming languages (all of which seem<br />
to have stolen countless features from one another) sometimes makes it<br />
difficult to remember what language you’re currently using. This guide<br />
is offered as a public service to help programmers who find themselves<br />
in such dilemmas.</p>
<p><strong>C</strong><br />
You shoot yourself in the foot.</p>
<p><strong>C++</strong><br />
You accidentally create a dozen clones of yourself and shoot them all<br />
in the foot. Providing emergency medical assistance is impossible since<br />
you can’t tell which are bitwise copies and which are just pointing at<br />
others and saying, “That’s me, over there.”</p>
<p><strong>JAVA</strong><br />
After importing java.awt.right.foot.* and java.awt.gun.right.hand.*,<br />
and writing the classes and methods of those classes needed, you’ve<br />
forgotten what the hell you’re doing.</p>
<p><strong>Ruby</strong><br />
Your foot is ready to be shot in roughly five minutes, but you just can’t find anywhere to shoot it.</p>
<p><strong>PHP</strong><br />
You shoot yourself in the foot with a gun made with pieces from 300 other guns.</p>
<p><strong>ASP.NET</strong><br />
Find a gun, it falls apart. Put it back together, it falls apart again.<br />
You try using the .GUN Framework, it falls apart. You stab yourself in<br />
the foot instead.</p>
<p><strong>SQL</strong><br />
SELECT @ammo:=bullet FROM gun WHERE trigger = ‘PULLED’;<br />
INSERT INTO leg (foot) VALUES (@ammo);</p>
<p><strong>Perl</strong><br />
You shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you. <small>(via <strong>Andy</strong>)</small></p>
<p><strong>Javascript</strong><br />
YOu’ve perfected a robust, rich user experience for shooting yourself<br />
in the foot. You then find that bullets are disabled on your gun.</p>
<p><strong>CSS</strong><br />
You shoot your right foot with one hand, then switch hands to shoot<br />
your left foot but you realize that the gun has turned into a banana.</p>
<p><strong>FORTRAN</strong><br />
You shoot yourself in each toe, iteratively, until you run out of toes,<br />
then you read in the next foot and repeat. If you run out of bullets,<br />
you continue anyway because you have no exception-handling ability.</p>
<p><strong>Modula2</strong><br />
After realizing that you can’t actually accomplish anything in this language, you shoot yourself in the head.</p>
<p><strong>COBOL</strong><br />
Using a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place<br />
ARM.HAND.FINGER. on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to<br />
HOLSTER. CHECK whether shoelace needs to be retied.</p>
<p><strong>LISP</strong><br />
You shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds ….</p>
<p><strong>BASIC</strong><br />
Shoot yourself in the foot with a water pistol. On big systems, continue until entire lower body is waterlogged.</p>
<p><strong>FORTH</strong><br />
Foot in yourself shoot.</p>
<p><strong>APL</strong><br />
You shoot yourself in the foot, then spend all day figuring out how to do it in fewer characters.</p>
<p><strong>Pascal</strong><br />
The compiler won’t let you shoot yourself in the foot.</p>
<p><strong>SNOBOL</strong><br />
If you succeed, shoot yourself in the left foot.<br />
If you fail, shoot yourself in the right foot.</p>
<p><strong>Concurrent Euclid</strong><br />
You shoot yourself in somebody else’s foot.</p>
<p><strong>HyperTalk</strong><br />
Put the first bullet of the gun into the foot of the left leg of you.<br />
Answer the result.</p>
<p><strong>Motif</strong><br />
You spend days writing a UIL description of your foot, the trajectory,<br />
the bullet, and the intricate scrollwork on the ivory handles of the<br />
gun. When you finally get around to pulling the trigger, the gun jams.</p>
<div class="ad-right">
<p><script type="text/javascript"><!--
google_ad_client = "pub-1961384479133006";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-06-20: fd-square
google_ad_channel = "8375782611";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0040B6";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
</div>
<p><strong>Unix</strong><br />
% ls<br />
foot.c foot.h foot.o toe.c toe.o<br />
% rm * .o<br />
rm: .o: No such file or directory<br />
% ls<br />
%</p>
<p><strong>Paradox</strong><br />
Not only can you shoot yourself in the foot, your users can too.</p>
<p><strong>Revelation</strong><br />
You’ll be able to shoot yourself in the foot just as soon as you figure out what all these bullets are for.</p>
<p><strong>Visual Basic</strong><br />
You’ll shoot yourself in the foot, but you’ll have so much fun doing it that you won’t care.</p>
<p><strong>Prolog</strong><br />
You tell your program you want to be shot in the foot. The program<br />
figures out how to do it, but the syntax doesn’t allow it to explain.</p>
<p><strong>Ada</strong><br />
After correctly packaging your foot, you attempt to concurrently load<br />
the gun, pull the trigger, scream and shoot yourself in the foot. When<br />
you try, however, you discover that your foot is of the wrong type.</p>
<p><strong>Assembly</strong><br />
You try to shoot yourself in the foot only to discover you must first<br />
reinvent the gun, the bullet, and your foot. After that’s done, you<br />
pull the trigger, the gun beeps several times, then crashes.</p>
<p><strong>370 JCL</strong><br />
You send your foot down to MIS with a 4000-page document explaining how<br />
you want it to be shot. Three years later, your foot comes back<br />
deep-fried.</p>
<p><strong>Python</strong><br />
You try to shoot yourself in the foot but you just keep hitting the whitespace between your toes.</p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2008/07/how-to-shoot-yourself-in-the-foot-in-any-programming-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google store locator &#8211; Part 2</title>
		<link>http://cyberstarweb.com/2008/06/google-store-locator-part-2/</link>
		<comments>http://cyberstarweb.com/2008/06/google-store-locator-part-2/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 15:56:32 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Store Locator]]></category>

		<guid isPermaLink="false">/post/Google-store-locator---Part-2.aspx</guid>
		<description><![CDATA[I wanted to try something different with the original Google store locator. I decided I wanted to just show a listing of the stores without a map. This is what you see on most sites that have store locators. I also wanted to add the Smarty template system to it. Here are the results. Now [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to try something different with the original <a href="http://cyberstarweb.com/post/Google-store-locator.aspx">Google store locator</a>. I decided I wanted to just show a listing of the stores without a map. This is what you see on most sites that have store locators. I also wanted to add the Smarty template system to it. Here are the results. Now only the Google geocoding service is used to get the coordinates of the zip code entered, and is utilzed once during the setup of the locations to retrieve the coordinates. Now we could also add an internal database of zip code coordinates for the entire United States and it would be a completely self contained application, unless, of course, we also wanted to provide a link to a Google map. </p>
<p><a href="http://cyberstarweb.com/files/mylocator.zip">Download </a>this demo project.
<p>Enter your zip code to locate your nearest Cyberstarweb!</p>
<p><iframe src="/mylocator/locator.php" frameborder="0" height="400" width="550"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2008/06/google-store-locator-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google store locator</title>
		<link>http://cyberstarweb.com/2008/06/google-store-locator/</link>
		<comments>http://cyberstarweb.com/2008/06/google-store-locator/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 15:47:09 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Store Locator]]></category>

		<guid isPermaLink="false">/post/Google-store-locator.aspx</guid>
		<description><![CDATA[This is a demo of a store locator I put together pretty quick using the Google maps api and the examples. It utilizes Ajax, PHP and a MySql database. As a demo it works well, although it&#8217;s not completely polished, lacking error handling. Download this demo project. Also see Google store locator Part 2. On [...]]]></description>
			<content:encoded><![CDATA[<p>This is a demo of a store locator I put together pretty quick using the Google maps api and the examples. It utilizes Ajax, PHP and a MySql database. As a demo it works well, although it&#8217;s not completely polished, lacking error handling. <a href="http://cyberstarweb.com/files/mylocator.zip">Download </a>this demo project.</p>
<p>
<p>Also see <a href="/2008/06/google-store-locator-part-2/">Google store locator Part 2</a>. </p>
<p>On a related note, the <a href="/2008/04/geocoder-find-your-latitude-and-longitude/">Geocoder</a> displays the latitude and longitude of any address.
<p>Enter your zip code to find your nearest Cyberstarweb! </p>
<p>
<p><iframe src="/mylocator/locate.html" frameborder="0" height="525" scrolling="no" width="600"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2008/06/google-store-locator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix for Firefox received a message with incorrect Message Authentication Code</title>
		<link>http://cyberstarweb.com/2008/05/fix-for-firefox-received-a-message-with-incorrect-message-authentication-code/</link>
		<comments>http://cyberstarweb.com/2008/05/fix-for-firefox-received-a-message-with-incorrect-message-authentication-code/#comments</comments>
		<pubDate>Wed, 07 May 2008 09:12:22 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">/post/Fix-for-Firefox-received-a-message-with-incorrect-Message-Authentication-Code.aspx</guid>
		<description><![CDATA[Recently when browsing with Firefox, I kept getting a popup message box: &#8230;received a message with incorrect Message Authentication Code. This happened every time I visited GMail, or any other ssl site via htttps://. I searched everywhere for a solution to fix this annoyance, and finally found my solution in the MozillaZine forum at this [...]]]></description>
			<content:encoded><![CDATA[<p>Recently when browsing with Firefox, I kept getting a popup message box: &#8230;received a message with incorrect Message Authentication Code. This happened every time I visited GMail, or any other ssl site via htttps://. I searched everywhere for a solution to fix this annoyance, and finally found my solution in the MozillaZine forum at this link: <a target="_blank" href="http://tinyurl.com/5wnhs7">http://tinyurl.com/5wnhs7</a></p>
<p>The fix to this problem is to enable a firewall on the user&#8217;s PC. </p>
<p>This is the fix that worked for me. During my search for a fix I noticed that this is a widespread problem with Firefox.</p>
<p>It seems that this message occurs in Firefox when one disables the <b>Windows firewall service</b>. I had inadvertently disabled the service, and that was when the messages started occurring. After I enabled the Windows firewall service the &#8220;incorrect Message Authentication Code&#8221; messages stopped. </p>
<p>According to the people at the MozillaZine forums, any firewall will do, it is not necessary to use only the Windows firewall. But a software firewall needs to be enabled.</p>
<p>Some people on the forum feel that this points to spyware or viruses on the user&#8217;s PC. I have scanned my PC and found no traces of spyware or viruses, so this may be a problem with Firefox.</p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2008/05/fix-for-firefox-received-a-message-with-incorrect-message-authentication-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Telemarketers giving free Gift Cards</title>
		<link>http://cyberstarweb.com/2008/04/telemarketers-giving-free-gift-cards/</link>
		<comments>http://cyberstarweb.com/2008/04/telemarketers-giving-free-gift-cards/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 09:00:12 +0000</pubDate>
		<dc:creator>Cyberstarweb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">/post/Telemarketers-giving-free-Gift-Cards.aspx</guid>
		<description><![CDATA[This post is off topic, but I recently recieved a call from a what I thought was Telemarketer. The caller id on my telephone read &#8220;Research Center 231-224-2031&#8243;. They asked me if I would answer a few questions about &#8220;Household Services&#8221;. In return for my time, they promised that I would receive a ten dollar [...]]]></description>
			<content:encoded><![CDATA[<p>This post is off topic, but I recently recieved a call from a what I thought was Telemarketer. The caller id on my telephone read &#8220;Research Center 231-224-2031&#8243;.    </p>
<p>They asked me if I would answer a few questions about &#8220;Household Services&#8221;. In return for my time, they promised that I would receive a ten dollar gift card from Target.     </p>
<p>&#8220;Yeah, right, another scam&#8221;, I thought.     </p>
<p>But the offer was enticing and I went ahead and answered about ten minutes worth of yes/no questions. At the end of the question and answer session, they took my name and address and promised to send me the gift card. I didn&#8217;t really believe them, but I took my chances and gave them the information.     </p>
<p>About two weeks later my gift card arrived in the mail! I went to Target and splurged on some clearance items, parlaying my ten dollar bonanza into a sizable value based on original retail. All is well.     </p>
<p>Moral of the story &#8211; be very careful, but sometimes telemarketers can be trusted!     </p>
]]></content:encoded>
			<wfw:commentRss>http://cyberstarweb.com/2008/04/telemarketers-giving-free-gift-cards/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
