# MSDNDemos
Demo projects used on MSDN form

<h1>MSDNDemos<h1>
<p>Demo projects used on MSDN forum</p>
<br />
<h2>WinFirewall</h2>
<p>Simple demo on how to add rules to Advanced Firewall that comes with Vista+.</p>
<br/>
<h2>WinFormWPFHybrid</h2>
<p>Inspired by <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/19ab0539-ba96-461a-8f24-764549e5a73c/up-side-down-text?forum=csharpgeneral">this question</a>. This WinForm example contains a UserControl that hosts WPF control and will display RichText input upside down.</p>
<br/>
<h2>TripleDESTest</h2>
<p>Demo to perform DESede/ECB/PKCS5Padding encryption / decryption in C# and Java.<br />
<br />
Originally posted <a href="https://social.msdn.microsoft.com/Forums/en-US/e82f8000-b9ea-486e-b55d-39ee1716a865/triple-des-decryption-error-bad-data?forum=netfxbcl">here</a> and revised a bit to make sure both programs are functionally identical.<br />
The Java source is written with strictly only libraries come with JDK8 and nothing else.<br />
For those who need CBC version, please refer to <a href="https://stackoverflow.com/questions/20227/how-do-i-use-3des-encryption-decryption-in-java">here</a>. (Basically you only need to add IV parameter after changing ECB to CBC)<br />
Hope this can help people who have problem in porting Java code to C#.<br />
<br />
Compile instruction:<br />
Let's assume you install it at "C:\Program Files\Java\jdk1.8.0_141"<br />
<pre>
C:\Program Files\Java\jdk1.8.0_141\javac.exe TripleDESTest.java
C:\Program Files\Java\jdk1.8.0_141\java TripleDESTest
</pre>
</p>
<br/>


Add brief descriptions for projects.
Add brief descriptions for projects.