<?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>gego.info &#187; it-security</title>
	<atom:link href="http://www.gego.info/tag/it-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gego.info</link>
	<description>gernot's nearly up-to-date blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:54:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>CSharp &#8211; Rijndael/AES symetric Encryption and Decryption</title>
		<link>http://www.gego.info/2006/02/02/c-net-rijndaelaes-symetric-encryption-and-decryption/</link>
		<comments>http://www.gego.info/2006/02/02/c-net-rijndaelaes-symetric-encryption-and-decryption/#comments</comments>
		<pubDate>Thu, 02 Feb 2006 16:15:23 +0000</pubDate>
		<dc:creator>gernot</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[it-security]]></category>

		<guid isPermaLink="false">http://www.gego.info/index.php/2006/02/02/c-net-rijndaelaes-symetric-encryption-and-decryption/</guid>
		<description><![CDATA[A short tutorial how to encrypt, respectivelly decrypt a string in C# with Rijndael/AES.]]></description>
			<content:encoded><![CDATA[<p>A short tutorial how to encrypt, respectivelly decrypt a string in C# with Rijndael/AES.</p>
<p>NOTE: The Keygeneration is done in the encryption and decryption methods. For usage in a &#8216;real&#8217; application this should be outsourced.</p>
<h2>Encryption</h2>
<blockquote>
<p><font color="#0000cc">using </font>System.Security.Cryptography;
</p>
</blockquote>
<blockquote>
<p><font color="#336600">// Input Values:<br />
// pwdHash = &#8220;MD5&#8243; / &#8220;SHA1&#8243;<br />
// iv = &#8220;16 ASCII Characters&#8221;<br />
// keySize = 128 / 192 / 256</font><br />
<font color="#0000cc"> public string</font> Encrypt(<font color="#0000cc">string </font>text, <font color="#0000cc">string </font>pwdPhrase, <font color="#0000cc">string </font>pwdSalt, <font color="#0000cc">string </font>pwdHash,<br />
&nbsp;&nbsp;int pwdIterations, <font color="#0000cc">string </font>iv, int keySize)<br />
{<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> ivBytes = <font color="#0099cc">Encoding</font>.ASCII.GetBytes(iv);<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> pwdSaltBytes = <font color="#0099cc">Encoding</font>.ASCII.GetBytes(pwdSalt);<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> textBytes = <font color="#0099cc">Encoding</font>.UTF8.GetBytes(text);<br />
&nbsp;&nbsp;<font color="#0099cc">PasswordDeriveBytes </font>pwd<br />
&nbsp;&nbsp;&nbsp;&nbsp; = <font color="#0000cc">new </font><font color="#0099cc">PasswordDeriveBytes </font>(pwdPhrase, pwdSaltBytes, pwdHash, pwdIterations);<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> keyBytes = pwd.GetBytes( keySize / 8 );<br />
&nbsp;&nbsp;<font color="#0099cc">RijndaelManaged </font>symmKey = <font color="#0000cc">new </font><font color="#0099cc">RijndaelManaged </font>();<br />
&nbsp;&nbsp;symmKey.Mode = <font color="#0099cc">CipherMode</font>.CBC;<br />
&nbsp;&nbsp;<font color="#0099cc">ICryptoTransform </font>enc<br />
&nbsp;&nbsp;&nbsp;&nbsp; = symmKey.CreateEncryptor(keyBytes, ivBytes);<br />
&nbsp;&nbsp;<font color="#0099cc">MemoryStream </font>mem = <font color="#0000cc">new </font><font color="#0099cc">MemoryStream </font>();<br />
&nbsp;&nbsp;<font color="#0099cc">CryptoStream </font>cry<br />
&nbsp;&nbsp;&nbsp;&nbsp; = <font color="#0000cc">new </font><font color="#0099cc">CryptoStream </font>(mem, enc, CryptoStreamMode.Write);<br />
&nbsp;&nbsp;cry.Write(textBytes, 0, textBytes.Length);<br />
&nbsp;&nbsp;cry.FlushFinalBlock();<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> cipBytes = mem.ToArray();<br />
&nbsp;&nbsp;mem.Close();<br />
&nbsp;&nbsp;cry.Close();<br />
&nbsp;&nbsp;<font color="#0000cc">return </font>Convert.ToBase64String(cipBytes);<br />
}</p>
</blockquote>
<h2>Decryption</h2>
<blockquote>
<p><font color="#0000cc">using </font>System.Security.Cryptography;
</p>
</blockquote>
<blockquote>
<p><font color="#336600">// Input Values:<br />
// pwdHash = &#8220;MD5&#8243; / &#8220;SHA1&#8243;<br />
// iv = &#8220;16 ASCII Characters&#8221;<br />
// keySize = 128 / 192 / 256</font><br />
<font color="#0000cc"> public string</font> Decrypt(<font color="#0000cc">string </font>cip, <font color="#0000cc">string </font>pwdPhrase, <font color="#0000cc">string </font>pwdSalt, <font color="#0000cc">string </font>pwdHash,<br />
&nbsp;&nbsp;int pwdIterations, <font color="#0000cc">string </font>iv, int keySize)<br />
{<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> ivBytes = <font color="#0099cc">Encoding</font>.ASCII.GetBytes(iv);<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> pwdSaltBytes = <font color="#0099cc">Encoding</font>.ASCII.GetBytes(pwdSalt);<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font>cipTextBytes = <font color="#0099cc">Convert</font>.FromBase64String(cip);<br />
&nbsp;&nbsp;<font color="#0099cc">PasswordDeriveBytes </font>pwd<br />
&nbsp;&nbsp;&nbsp;&nbsp; = <font color="#0000cc">new </font><font color="#0099cc">PasswordDeriveBytes </font>(pwdPhrase, pwdSaltBytes, pwdHash, pwdIterations);<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> keyBytes = pwd.GetBytes( keySize / 8 );<br />
&nbsp;&nbsp;<font color="#0099cc">RijndaelManaged </font>symmKey = <font color="#0000cc">new </font><font color="#0099cc">RijndaelManaged </font>();<br />
&nbsp;&nbsp;symmKey.Mode = CipherMode.CBC;<br />
&nbsp;&nbsp;<font color="#0099cc">ICryptoTransform </font>dec<br />
&nbsp;&nbsp;&nbsp;&nbsp; = symmKey.CreateDecryptor(keyBytes, ivBytes);<br />
&nbsp;&nbsp;<font color="#0099cc">MemoryStream </font>mem = <font color="#0000cc">new </font><font color="#0099cc">MemoryStream </font>(cipTextBytes);<br />
&nbsp;&nbsp;<font color="#0099cc">CryptoStream </font>cry<br />
&nbsp;&nbsp;&nbsp;&nbsp; = <font color="#0000cc">new </font><font color="#0099cc">CryptoStream </font>(mem, dec, CryptoStreamMode.Read);<br />
&nbsp;&nbsp;<font color="#0000cc">byte[]</font> textBytes = <font color="#0000cc">new </font>byte[cipTextBytes.Length];<br />
&nbsp;&nbsp;<font color="#0000cc">int </font>decByteCount<br />
&nbsp;&nbsp;&nbsp;&nbsp; = cry.Read(textBytes, 0, textBytes.Length);<br />
&nbsp;&nbsp;mem.Close();<br />
&nbsp;&nbsp;cry.Close();<br />
&nbsp;&nbsp;<font color="#0000cc">return </font>Encoding.UTF8.GetString(textBytes, 0, decByteCount);<br />
}</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gego.info/2006/02/02/c-net-rijndaelaes-symetric-encryption-and-decryption/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Service Security</title>
		<link>http://www.gego.info/2006/01/22/web-service-security/</link>
		<comments>http://www.gego.info/2006/01/22/web-service-security/#comments</comments>
		<pubDate>Sun, 22 Jan 2006 20:43:40 +0000</pubDate>
		<dc:creator>gernot</dc:creator>
				<category><![CDATA[Studies]]></category>
		<category><![CDATA[it-security]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://www.gego.info/index.php/work/studies/web-service-security/</guid>
		<description><![CDATA[Im Zuge der LVA IT/EC wurde folgende Seminararbeit verfasst: Web Service Security. Abstract: Am Beginn der Arbeit werden die Basiskonzepte von WS-Security, XML-Signature und XML-Encryption vorgestellt. XML-Signature ist ein Sicherheitsstandard der in erster Linie Integrität des Nachrichtenaustausches gewährleisten soll. Der Sender einer XML-Nachricht hängt eine digitale Signatur an die Nachricht an. Diese Signatur gibt dem [...]]]></description>
			<content:encoded><![CDATA[<p>Im Zuge der LVA IT/EC wurde folgende Seminararbeit verfasst: <strong>Web Service Security</strong>.</p>
<p><strong>Abstract:</strong>  Am Beginn der Arbeit werden die Basiskonzepte von WS-Security, XML-Signature und XML-Encryption vorgestellt. XML-Signature ist ein Sicherheitsstandard der in erster Linie Integrität des Nachrichtenaustausches gewährleisten soll. Der Sender einer XML-Nachricht hängt eine digitale Signatur an die Nachricht an. Diese Signatur gibt dem Empfänger der Nachricht die Möglichkeit, diese auf Veränderung zu prüfen. XMLEncryption ist ein weiterer Sicherheitsstandard der es ermöglicht XML-Nachrichten beziehungsweise Teile von XML-Nachrichten zu verschlüsseln, um so die Inhalte vor unberechtigten Einblicken durch Dritte zu schützen. Im Anschluss daraen wird die praktische Anwendung des WS-Security Konzepts auf SOAP (Simple Object Access Protocol) behandelt. Hierfür wird kurz auf Aufbau und Funktionsweise von SAML (Security Assertion Markup Language) eingegangen, um die Authentifikation und Autorisation im WSSecurity Prozess zu ermöglichen. Ein weiterer wichtiger Bestandteil des angesprochenen Konzeptes ist WS-Policy, der es uns ermöglicht spezifische Richtlinien beziehungsweise Regelsets (Policies) für Web Services zu entwickeln. Abschließend wird anhand von WSS4J, einer Apache Implementierung, WS-Security in der Anwendung gezeigt.</p>
<p><strong>Download:</strong>  <a id="p181" onmousedown="selectLink(181);" href="http://www.gego.info/wp-content/uploads/2006/01/ec1_wssecurity_endabgabe.pdf">ec1_wssecurity_endabgabe.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gego.info/2006/01/22/web-service-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Security &#8211; FASS Vortrag</title>
		<link>http://www.gego.info/2006/01/22/java-security-fass-vortrag/</link>
		<comments>http://www.gego.info/2006/01/22/java-security-fass-vortrag/#comments</comments>
		<pubDate>Sun, 22 Jan 2006 20:37:02 +0000</pubDate>
		<dc:creator>gernot</dc:creator>
				<category><![CDATA[Studies]]></category>
		<category><![CDATA[it-security]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.gego.info/index.php/java-security-fass-vortrag/</guid>
		<description><![CDATA[Im SS 2005 durfte ich innerhalb der Lehrveranstaltung Fortgeschrittene Aspekte von Software Security einen Vortrag über Java Security halten: FASS_2.ppt]]></description>
			<content:encoded><![CDATA[<p>Im SS 2005 durfte ich innerhalb der Lehrveranstaltung <strong>Fortgeschrittene Aspekte von Software Security</strong> einen Vortrag über Java Security halten: <a id="p179" onmousedown="selectLink(179);" href="http://www.gego.info/wp-content/uploads/2006/01/FASS_2.ppt">FASS_2.ppt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gego.info/2006/01/22/java-security-fass-vortrag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ein kurzer Einblick in die Quantenkryptographie</title>
		<link>http://www.gego.info/2006/01/22/ein-kurzer-einblick-in-die-quantenkryptographie/</link>
		<comments>http://www.gego.info/2006/01/22/ein-kurzer-einblick-in-die-quantenkryptographie/#comments</comments>
		<pubDate>Sun, 22 Jan 2006 20:33:03 +0000</pubDate>
		<dc:creator>gernot</dc:creator>
				<category><![CDATA[Studies]]></category>
		<category><![CDATA[it-security]]></category>
		<category><![CDATA[kryptographie]]></category>
		<category><![CDATA[quanten]]></category>

		<guid isPermaLink="false">http://www.gego.info/index.php/work/studies/ein-kurzer-einblick-in-die-quantenkryptographie/</guid>
		<description><![CDATA[In der Übung aus Kryptographie verfasste Arbeit: Ein kurzer Einblick in die Quantenkryptographie. Download: Arbeit: Quantenkryptographie.pdf Präsentation: Quantenkryptographie-Vortrag.pdf]]></description>
			<content:encoded><![CDATA[<p>In der Übung aus Kryptographie verfasste Arbeit: <strong>Ein kurzer Einblick in die Quantenkryptographie</strong>.</p>
<p>Download:</p>
<ul>
<li>Arbeit: <a id="p176" onmousedown="selectLink(176);" href="http://www.gego.info/wp-content/uploads/2006/01/Quantenkryptographie.pdf">Quantenkryptographie.pdf</a></li>
<li>Präsentation:  <a id="p177" onmousedown="selectLink(177);" href="http://www.gego.info/wp-content/uploads/2006/01/Quantenkryptographie-Vortrag.pdf">Quantenkryptographie-Vortrag.pdf</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gego.info/2006/01/22/ein-kurzer-einblick-in-die-quantenkryptographie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

