<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sisyboy's Weblog</title>
	<atom:link href="http://sisyboy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sisyboy.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 06 May 2008 05:06:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sisyboy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sisyboy's Weblog</title>
		<link>http://sisyboy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sisyboy.wordpress.com/osd.xml" title="Sisyboy&#039;s Weblog" />
	<atom:link rel='hub' href='http://sisyboy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>PROGRAM HILLS</title>
		<link>http://sisyboy.wordpress.com/2008/05/06/program-hills/</link>
		<comments>http://sisyboy.wordpress.com/2008/05/06/program-hills/#comments</comments>
		<pubDate>Tue, 06 May 2008 05:06:22 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Pemrograman Neo]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/?p=47</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; #include&#60;string.h&#62; main(){ int i,j,k,l,p, m, pilih, a,c, b,d, s1,s2,y1,y2; char temp, sistem; char z[40],key[40],hasil[40], A, B; char huruf[26]={&#8216;A&#8217;,'B&#8217;,'C&#8217;,'D&#8217;,'E&#8217;,'F&#8217;,'G&#8217;,'H&#8217;,'I&#8217;,'J&#8217;,'K&#8217;,'L&#8217;,'M&#8217;, &#8216;N&#8217;,'O&#8217;,'P&#8217;,'Q&#8217;,'R&#8217;,'S&#8217;,'T&#8217;,'U&#8217;,'V&#8217;,'W&#8217;,'X&#8217;,'Y&#8217;,'Z&#8217;}; clrscr(); printf(&#8221; ==========================================================\n&#8221;); printf(&#8221; = PROGRAM HILSS =\n&#8221;); printf(&#8221; = =\n&#8221;); printf(&#8221; = Neo Fajar Bawana Konta Dewa Danu =\n&#8221;); printf(&#8221; = TEKNIK PERSANDIAN =\n&#8221;); printf(&#8221; = =\n&#8221;); printf(&#8221; ==========================================================\n&#8221;); printf(&#8220;\n&#8221;); sleep(2); clrscr(); printf(&#8221; ___________________________________________________________\n&#8221;); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=47&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;<br />
#include&lt;string.h&gt;</p>
<p>main(){<br />
int i,j,k,l,p, m, pilih, a,c, b,d, s1,s2,y1,y2;<br />
char temp, sistem;<br />
char z[40],key[40],hasil[40], A, B;<br />
char huruf[26]={&#8216;A&#8217;,'B&#8217;,'C&#8217;,'D&#8217;,'E&#8217;,'F&#8217;,'G&#8217;,'H&#8217;,'I&#8217;,'J&#8217;,'K&#8217;,'L&#8217;,'M&#8217;,<br />
&#8216;N&#8217;,'O&#8217;,'P&#8217;,'Q&#8217;,'R&#8217;,'S&#8217;,'T&#8217;,'U&#8217;,'V&#8217;,'W&#8217;,'X&#8217;,'Y&#8217;,'Z&#8217;};</p>
<p>clrscr();</p>
<p>printf(&#8221;      ==========================================================\n&#8221;);<br />
printf(&#8221;      =                              PROGRAM HILSS                    =\n&#8221;);<br />
printf(&#8221;      =                                                      =\n&#8221;);<br />
printf(&#8221;      =            Neo Fajar Bawana Konta Dewa Danu    =\n&#8221;);<br />
printf(&#8221;      =                          TEKNIK PERSANDIAN             =\n&#8221;);<br />
printf(&#8221;      =                                                        =\n&#8221;);<br />
printf(&#8221;      ==========================================================\n&#8221;);<br />
printf(&#8220;\n&#8221;);<br />
sleep(2);<br />
clrscr();<br />
printf(&#8221; ___________________________________________________________\n&#8221;);<br />
printf(&#8220;|                                                          |\n&#8221;);<br />
printf(&#8220;|       SELAMAT DATANG DI PROGRAM PENYANDIAN HILSS         |\n&#8221;);<br />
printf(&#8220;|                       1. ENCRYPTION                      |\n&#8221;);<br />
printf(&#8220;|                       2. DECRYPTION                      |\n&#8221;);<br />
printf(&#8220;|                       3. EXIT                            |\n&#8221;);<br />
printf(&#8220;|__________________________________________________________|\n&#8221;);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8221; masukkan menu pilihan anda:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;pilih);<br />
switch(pilih);<br />
{<br />
case1:<br />
clrscr();<br />
printf(&#8221;    ====Selamat Datang di Program Digraf Encryption====\n    &#8220;);<br />
sleep(2);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8220;A.Sistem KS\n&#8221;);<br />
printf(&#8220;B.Sistem KCTR\n&#8221;);<br />
printf(&#8220;Pilih Sistem Sandi Yang Akan digunakan:\n&#8221;);<br />
scanf(&#8220;%c&#8221;, &amp;sistem);<br />
switch(sistem);<br />
{<br />
case&#8217;A':<br />
printf(&#8220;ENTER KEY WORD (UPPER CASE LETTER) : &#8220;);<br />
scanf(&#8220;%s&#8221;,key);<br />
l = strlen(key);</p>
<p>for(i=0;i&lt;l;i++)<br />
for(j=i+1;j&lt;l;j++){<br />
if(key[i] == key[j]){<br />
key[j]=&#8217; &#8216;;<br />
if(j+1&lt;l){<br />
m=j;<br />
for(k=m+1;k&lt;l;k++){<br />
key[m]=key[k];<br />
m++;<br />
}<br />
j&#8211;;<br />
}<br />
l-=1;<br />
}<br />
}</p>
<p>for(i=0;i&lt;26;i++)<br />
for(j=0;j&lt;l;j++){<br />
if(huruf[i]==key[j])<br />
huruf[i]=&#8217; &#8216;;<br />
}</p>
<p>p = l;<br />
for(i=0;i&lt;26;i++){<br />
if(huruf[i]!=&#8217; &#8216;){<br />
key[p]=huruf[i];<br />
p++;<br />
}<br />
}<br />
clrscr();<br />
printf(&#8220;\n\n&#8221;);<br />
printf(&#8220;HASIL PROSES KS: \n&#8221;);<br />
printf(&#8220;\n&#8221;);</p>
<p>for(i=0;i&lt;26;i++){<br />
printf(&#8220;%c&#8221;,key[i]);<br />
}</p>
<p>sleep(1);<br />
printf(&#8220;\n\n&#8221;);<br />
printf(&#8220;untuk persamaan y1\n&#8221;);<br />
sleep(1);<br />
printf(&#8220;masukkan nilai koefisien x1:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;a);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8220;masukkan nilai koefisien x2:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;b);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8220;masukkan nilai konstanta1:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;s1);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8220;untuk persamaan y2&#8243;);<br />
sleep(1);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8220;masukkan nilai koefisien x1:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;c);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8220;masukkan nilai koefisien x2:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;d);<br />
printf(&#8220;\n&#8221;);<br />
printf(&#8220;masukkan nilai konstanta2:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;s2);<br />
printf(&#8220;\n&#8221;);</p>
<p>for(i=0,j=i+1;i,j&lt;26;i++,j++)<br />
{<br />
key[i]=key[i+1];<br />
y1=(i*a+j*b+s1)%26;<br />
y2=(i*c+j*d+s2)%26;<br />
printf(&#8220;%c%c &#8220;, key[y1],key[y2]);}<br />
break;</p>
<p>case&#8217;B':<br />
printf(&#8220;copy cepet&#8221;);<br />
break;<br />
}</p>
<p>case2:<br />
printf(&#8220;maaf saya belum mengerti jadi maaf&#8221;);<br />
break;<br />
case3:<br />
break;<br />
}<br />
getch();</p>
<p>}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=47&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/05/06/program-hills/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>PROSES LOOPING</title>
		<link>http://sisyboy.wordpress.com/2008/05/06/proses-looping/</link>
		<comments>http://sisyboy.wordpress.com/2008/05/06/proses-looping/#comments</comments>
		<pubDate>Tue, 06 May 2008 04:22:11 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Pemrograman Neo]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/?p=46</guid>
		<description><![CDATA[PENGULANGAN DENGAN FOR LOOP FOR Loop adalah pengulangan perintah-perintah sampai mencapai keadaan tertentu. Turbo C mempunyai 3 jenis loop, yaitu : for while do – while Bentuk umum Loop For : for (inisialisasi; syarat; penambahan) pernyataan; Keterangan : Inisialisasi adalah pernyataan untuk menyatakan keadaan awal dari variabel kontrol. Syarat adalah ekspresi relasional yang menyatakan berhentinya [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=46&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">PENGULANGAN DENGAN FOR</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">LOOP FOR</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Loop adalah pengulangan perintah-perintah sampai mencapai keadaan tertentu. Turbo C mempunyai 3 jenis loop, yaitu :</span></p>
<ul>
<li>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">for</span></p>
</li>
<li>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">while</span></p>
</li>
<li>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">do 	– while</span></p>
</li>
</ul>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Bentuk umum Loop For :</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;"> for (inisialisasi; syarat; penambahan) pernyataan;</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Keterangan :</span></p>
<ul>
<li>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Inisialisasi 	adalah pernyataan untuk menyatakan keadaan awal dari variabel 	kontrol.</span></p>
</li>
<li>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Syarat 	adalah ekspresi relasional yang menyatakan berhentinya pengulangan.</span></p>
</li>
<li>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Penambahan 	menyatakan perubahan variabel kontrol setiap terjadi pengulangan. 	Setiap bagian harus dipisahkan oleh tanda </span><span style="font-size:x-small;">titik 	koma</span><span style="font-size:x-small;">.</span></p>
</li>
</ul>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int i;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (i=1; i &lt;=5 ; i++) printf(&#8220;%d \n&#8221;,i);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">getch();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Pada program tersebut :</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Inisialisasi	: i = 1</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Syarat		: i &lt;= 5</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Penambahan	: i++ , artinya ditambah 1</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Hasil :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">1</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">2</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">3</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">4</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">5</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">OPERATOR PENAMBAH DAN PENGURANG</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">C mempunyai dua operator khusus yaitu penambah (++) dan pengurang (&#8211;), contoh :</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">i ++ sama dengan i = i + 1</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">i &#8212;  sama dengan  i =  i – 1</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Operator penambah dan pengurang dapat dituliskan di depan atau dibelakang, tetapi mempunyai arti yang berbeda. Jika operator diletakkan di depan, C akan melakukan penambahan atau pengurangan sebelum memakai nilai operator. Jika diletakkan di belakang, C akan memakai nilai operator lalu menambah atau mengurangi variabel. </span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Contoh :</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">x = 10							x = 10</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">y = ++x						y = x++</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">hasil : 11						hasil : 10</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int i;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (i=5; i &gt; 0 ; i&#8211;) printf(&#8220;%d \n&#8221;,i);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">getch();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">#include &lt;math.h&gt;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int i, kuadrat, jumlah;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">float akar;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">char garis[35] = &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;Tabel Kuadrat dan Akar Kuadrat \n&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;%s\n&#8221;,garis);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;Bilangan  Kuadrat  Akar Kuadrat\n&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;%s\n&#8221;,garis);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (i=1; i&lt;=10; i++)</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">kuadrat = i * i;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">akar = sqrt(i);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8221;  %2d      %3d      %6.4f \n&#8221;,i,kuadrat,akar);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;%s\n&#8221;,garis);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">getch();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">VARIASI LOOP – FOR</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Kita dapat memakai beberapa variabel kontrol di dalam loop for, </span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int x,y;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (x=0,y=0; x+y&lt;=20; x++,++y) printf(&#8220;%d\n&#8221;,x+y);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">getch();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Program di atas mencetak bilangan 0 sampai 20. Perhatikan pernyataan for di atas.</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Inisialisasi	: x=0, y=0</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Syarat		: x+y &lt;= 20</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Penambahan	: x++, y++</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Tanda koma dipakai untuk memisahkan dua pernyataan di dalam sebuah bilangan. Misalnya di bagian inisialisasi ada pernyataan x=0 dan y=0. Tanda koma berarti lakukan ini dan ini.</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">MENGHILANGKAN SEBUAH BAGIAN LOOP</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Variasi lain adalah dengan menghilangkan salah satu bagian dari loop, </span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">char ch;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;Ketikkan karakter-karakter (z = stop) : \n&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (ch=&#8217; &#8216;; ch!=&#8217;z'; ) ch=getche();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Pada program di atas, Anda diminta untuk mengetikkan karakter-karakter dan program akan berhenti jika Anda mengetikkan huruf ‘z’.</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">LOOP TAK HINGGA</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Loop tak hingga dibuat dengan menghilangkan bagian syaratnya, </span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">char ch;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;Ketikkan karakter-karakter : \n&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (ch=&#8217; &#8216;; ; ) ch=getche();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Program tersebut meminta Anda mengetikkan sebuah huruf dan tidak akan berhenti. Untuk menghentikannya tekan tombol </span><span style="font-size:x-small;">CTRL + BREAK</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">LOOP TANPA PERNYATAAN</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Loop tanpa pernyataan dipakai untuk menunggu. Semakin banyak pengulangan, semakin lama menunggu., </span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int t,x;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;Berapa kali loop Anda akan menunggu : \n&#8221;); scanf(&#8220;%d&#8221;,&amp;x);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (t=0 ; t&lt;x ; t++ ) ;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">LOOP BERSARANG</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Perhatikan contoh program berikut :</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int i,j;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (i=1 ; i &lt;= 3 ; i++)</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">for (j=1 ; j &lt;= 5 ; j++ ) printf(&#8220;*&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8221; \n&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify">
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">getch();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Dari contoh tersebut dapat kita simpulkan bahwa variabel i menyatakan baris dan variabel j menyatakan kolom.</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">PENGULANGAN DENGAN WHILE DAN DO-WHILE</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">LOOP WHILE</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Bentuk umum :</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;"> while (syarat) pernyataan;</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Pernyataan pada loop while dapat berupa sebuah pernyataan atau blok pernyataan atau pernyataan kosong. Pernyataan akan diulang selama syarat benar,</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int i;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">i=1;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">while (i &lt;= 5)</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;STI&amp;K\n&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">i=i+1;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">getch();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Loop while menyatakan bahwa pengulangan akan dilakukan terus selama syarat terpenuhi.</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">LOOP DO WHILE</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Loop for dan while akan mengecek syarat pengulangan pada awal loop. Loop do-while mngecek syaratnya pada akhir pengulangan. Loop do-while akan selalu dikerjakan </span><span style="font-size:x-small;"><em>minimal sekali.</em></span><span style="font-size:x-small;"> Loop do-while menyatakan bahwa pengulangan akan dilakukan selama syarat terpenuhi.</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Bentuk umum :</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">do</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">statemen;</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">statemen;</span></p>
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">} while (syarat)</span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">Bentuk umum untuk loop do-while adalah pada rutin pemilihan menu, sebab menu selalu dikerjakan minimal sekali, </span></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><span style="font-size:x-small;">contoh :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">main()</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">int no_menu;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">do</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify">
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">clrscr();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;\n  Menu Hari Ini    &#8220;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;\n &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;\n 1. Nasi Goreng    &#8220;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;\n 2. Nasi Soto Ayam &#8220;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;\n 3. Gado-Gado      &#8220;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;\n 4. Bubur Ayam     &#8220;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">printf(&#8220;\n\n Masukkan pilihan Anda&#8230;! (0 = Selesai) &#8220;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">scanf(&#8220;%d&#8221;,&amp;no_menu);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">switch (no_menu)</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">{</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">case 1 :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> printf(&#8220;\n Nasi Goreng    Rp. 5000,-&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> break;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">case 2 :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> printf(&#8220;\n Nasi Soto Ayam Rp. 6000,-&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> break;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">case 3 :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> printf(&#8220;\n Gado-Gado      Rp. 4000,-&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> break;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">case 4 :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> printf(&#8220;\n Bubur Ayam     Rp. 3500,-&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> break;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">case 0 :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> printf(&#8220;\n Selesai.. Terima kasih..!&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> break;</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">default :</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;"> printf(&#8220;\n\n Pilihan Anda Salah&#8230;!&#8221;);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">getch();</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}while (no_menu != 0);</span></p>
<p style="margin-left:0.5in;margin-bottom:0;" align="justify"><span style="font-size:x-small;">}</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=46&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/05/06/proses-looping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>TUGAS STRUKTUR DATA &#8220;RC4&#8243;</title>
		<link>http://sisyboy.wordpress.com/2008/05/05/tugas-struktur-data-rc4/</link>
		<comments>http://sisyboy.wordpress.com/2008/05/05/tugas-struktur-data-rc4/#comments</comments>
		<pubDate>Mon, 05 May 2008 13:35:01 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Pemrograman Neo]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/?p=44</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; #include&#60;conio.h&#62; #include&#60;ctype.h&#62; #include&#60;string.h&#62; #include&#60;alloc.h&#62; #include&#60;dos.h&#62; #define ENTER &#8216;\r&#8217; int xbox_pertama[256]; int xbox_kedua[256]; int initialkey[11]; unsigned char plaintext[7], ciphertext[7], kosong, key; int a,b,c,d,i; void sbox_pertama(void) { for(i=0;i&#60;=255;i++) xbox_pertama[i]=i; } void sbox_kedua(void) { printf(&#8221; Masukkan initial Key Anda : &#8220;); gets(initialkey); b=strlen(initialkey); for(i=0;i&#60;=255;i++) { xbox_kedua[i]=initialkey[i%b]; } } void kunci(void) { char OLD[7]; FILE *pf1; printf(&#8220;\n\n Nama [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=44&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;<br />
#include&lt;conio.h&gt;<br />
#include&lt;ctype.h&gt;<br />
#include&lt;string.h&gt;<br />
#include&lt;alloc.h&gt;<br />
#include&lt;dos.h&gt;</p>
<p>#define ENTER &#8216;\r&#8217;</p>
<p>int xbox_pertama[256];<br />
int xbox_kedua[256];<br />
int initialkey[11];<br />
unsigned char plaintext[7], ciphertext[7], kosong, key;<br />
int a,b,c,d,i;</p>
<p>void sbox_pertama(void)<br />
{<br />
for(i=0;i&lt;=255;i++)<br />
xbox_pertama[i]=i;<br />
}</p>
<p>void sbox_kedua(void)<br />
{</p>
<p>printf(&#8221; Masukkan initial Key Anda : &#8220;);<br />
gets(initialkey);</p>
<p>b=strlen(initialkey);<br />
for(i=0;i&lt;=255;i++)<br />
{<br />
xbox_kedua[i]=initialkey[i%b];<br />
}<br />
}</p>
<p>void kunci(void)<br />
{<br />
char OLD[7];<br />
FILE *pf1;</p>
<p>printf(&#8220;\n\n Nama File untuk menyimpan xbox_pertama : &#8220;);<br />
gets(OLD);</p>
<p>pf1=fopen(OLD,&#8221;a+&#8221;);</p>
<p>b=0;<br />
for(a=0;a&lt;=255;a++)<br />
{<br />
b=(b+xbox_pertama[a]+xbox_kedua[a])%256;<br />
kosong=xbox_pertama[a];<br />
xbox_pertama[a]=xbox_pertama[b];<br />
xbox_pertama[b]=kosong;<br />
}</p>
<p>for(a=0;a&lt;=255;a++)<br />
{<br />
putc(xbox_pertama[a],pf1);<br />
putc(&#8216; &#8216;,pf1);<br />
}</p>
<p>for(a=0;a&lt;256;a++)<br />
{<br />
printf(&#8220;%4d&#8221;,xbox_pertama[a]);<br />
if((a+1)%16==0) {printf(&#8220;\n&#8221;);}<br />
}</p>
<p>fclose(pf1);</p>
<p>}</p>
<p>void process(void)<br />
{<br />
a=0;<br />
b=0;</p>
<p>printf(&#8220;\n\n Masukkan plaintext : &#8220;);<br />
gets(&#8220;plaintext&#8221;);</p>
<p>for(c=0;c&lt;6;c++)<br />
{<br />
a=(a+1)%256;<br />
b=(b+xbox_pertama[a])%256;<br />
kosong=xbox_pertama[a];<br />
xbox_pertama[a]=xbox_pertama[b];<br />
xbox_pertama[b]=kosong;<br />
d=(xbox_pertama[a]+xbox_pertama[b])%256;<br />
key=xbox_pertama[d];<br />
ciphertext[c]=plaintext[c]^key;<br />
printf(&#8220;\n %c -&gt; %c&#8221;,plaintext[c],ciphertext[c]);<br />
}</p>
<p>printf(&#8220;\n\n ciphertext : &#8220;);<br />
for(a=0;a&lt;6;a++)<br />
{<br />
printf(&#8220;%c &#8220;,ciphertext [a]);<br />
}</p>
<p>}</p>
<p>main()<br />
{<br />
int x,y,i,j,k,pilops;<br />
char c,kar,password[10],p[9]=&#8221;linklist&#8221;;</p>
<p>clrscr();</p>
<p>puts(&#8220;&#8221;);<br />
puts(&#8221;                      *************************************&#8221;);<br />
puts(&#8221;                      *                                   *&#8221;);<br />
puts(&#8221;                      *  PROGRAM  OPERASI PADA LINK LIST  *&#8221;);<br />
puts(&#8221;                      *  TUGAS MATA KULIAH STRUKTUR DATA  *&#8221;);<br />
puts(&#8221;                      *                OLEH : NEO       *&#8221;);<br />
puts(&#8221;                      *                                   *&#8221;);<br />
puts(&#8221;                      *************************************&#8221;);<br />
printf(&#8220;\n\n&#8221;);</p>
<p>c=&#8217;\xFE&#8217;;<br />
awal:<br />
printf(&#8221; LOGIN :\n\n&#8221;);<br />
printf(&#8221; MASUKKAN PASSWORD : &#8220;);<br />
for(i=0;i&lt;10;i++)<br />
{<br />
password[i]=getch();<br />
putchar(&#8216;*&#8217;);<br />
if(password[i]==ENTER)<br />
{password[i]=&#8221;; break;}<br />
}</p>
<p>if(strcmp(p,password)==0) {printf(&#8220;\n\n\n                                     LOADING\n\n &#8220;);<br />
printf(&#8221;                             &#8220;);<br />
for(i=0;i&lt;3;i++)<br />
{<br />
sleep(1);<br />
printf(&#8220;%c&#8221;,c);<br />
}<br />
clrscr();<br />
printf(&#8220;\n\n&#8221;);<br />
goto proses;<br />
}</p>
<p>else {printf(&#8220;\n\n Password Anda Salah!!!\n&#8221;);<br />
printf(&#8220;\n Ulangi LOGIN ? ( Y / T) &#8220;); kar=getche();<br />
if(kar==&#8217;Y'||kar==&#8217;y') {printf(&#8220;\n\n\n&#8221;); goto awal;}<br />
if(kar==&#8217;T'||kar==&#8217;t') goto selesai;<br />
}</p>
<p>proses:<br />
sbox_pertama();<br />
sbox_kedua();<br />
kunci();<br />
process();</p>
<p>printf(&#8220;\n Ulangi Operasi LINK LIST ? ( Y / T) &#8220;); kar=getche();</p>
<p>if(kar==&#8217;Y'||kar==&#8217;y') {printf(&#8220;\n\n\n&#8221;); goto proses;}<br />
else goto selesai;</p>
<p>selesai:<br />
getch();<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=44&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/05/05/tugas-struktur-data-rc4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>DEKRIPSI AES</title>
		<link>http://sisyboy.wordpress.com/2008/05/05/dekripsi-aes/</link>
		<comments>http://sisyboy.wordpress.com/2008/05/05/dekripsi-aes/#comments</comments>
		<pubDate>Mon, 05 May 2008 13:25:48 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Pemrograman Neo]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/?p=42</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; #define Nb 4 int Nr=0; int Nk=0; unsigned char in[16], out[16], state[4][4]; unsigned char RoundKey[240]; unsigned char Key[32]; int getSBoxInvert(int num) { int rsbox[256] = { 0&#215;52, 0&#215;09, 0x6a, 0xd5, 0&#215;30, 0&#215;36, 0xa5, 0&#215;38, 0xbf, 0&#215;40, 0xa3, 0x9e, 0&#215;81, 0xf3, 0xd7, 0xfb , 0x7c, 0xe3, 0&#215;39, 0&#215;82, 0x9b, 0x2f, 0xff, 0&#215;87, 0&#215;34, 0x8e, 0&#215;43, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=42&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;<br />
#define Nb 4</p>
<p>int Nr=0;<br />
int Nk=0;</p>
<p>unsigned char in[16], out[16], state[4][4];<br />
unsigned char RoundKey[240];<br />
unsigned char Key[32];</p>
<p>int getSBoxInvert(int num)<br />
{<br />
int rsbox[256] =<br />
{ 0&#215;52, 0&#215;09, 0x6a, 0xd5, 0&#215;30, 0&#215;36, 0xa5, 0&#215;38, 0xbf, 0&#215;40, 0xa3, 0x9e, 0&#215;81, 0xf3, 0xd7, 0xfb<br />
, 0x7c, 0xe3, 0&#215;39, 0&#215;82, 0x9b, 0x2f, 0xff, 0&#215;87, 0&#215;34, 0x8e, 0&#215;43, 0&#215;44, 0xc4, 0xde, 0xe9, 0xcb<br />
, 0&#215;54, 0x7b, 0&#215;94, 0&#215;32, 0xa6, 0xc2, 0&#215;23, 0x3d, 0xee, 0x4c, 0&#215;95, 0x0b, 0&#215;42, 0xfa, 0xc3, 0x4e<br />
, 0&#215;08, 0x2e, 0xa1, 0&#215;66, 0&#215;28, 0xd9, 0&#215;24, 0xb2, 0&#215;76, 0x5b, 0xa2, 0&#215;49, 0x6d, 0x8b, 0xd1, 0&#215;25<br />
, 0&#215;72, 0xf8, 0xf6, 0&#215;64, 0&#215;86, 0&#215;68, 0&#215;98, 0&#215;16, 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0&#215;65, 0xb6, 0&#215;92<br />
, 0x6c, 0&#215;70, 0&#215;48, 0&#215;50, 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0&#215;15, 0&#215;46, 0&#215;57, 0xa7, 0x8d, 0x9d, 0&#215;84<br />
, 0&#215;90, 0xd8, 0xab, 0&#215;00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0&#215;58, 0&#215;05, 0xb8, 0xb3, 0&#215;45, 0&#215;06<br />
, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0&#215;02, 0xc1, 0xaf, 0xbd, 0&#215;03, 0&#215;01, 0&#215;13, 0x8a, 0x6b<br />
, 0x3a, 0&#215;91, 0&#215;11, 0&#215;41, 0x4f, 0&#215;67, 0xdc, 0xea, 0&#215;97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0&#215;73<br />
, 0&#215;96, 0xac, 0&#215;74, 0&#215;22, 0xe7, 0xad, 0&#215;35, 0&#215;85, 0xe2, 0xf9, 0&#215;37, 0xe8, 0x1c, 0&#215;75, 0xdf, 0x6e<br />
, 0&#215;47, 0xf1, 0x1a, 0&#215;71, 0x1d, 0&#215;29, 0xc5, 0&#215;89, 0x6f, 0xb7, 0&#215;62, 0x0e, 0xaa, 0&#215;18, 0xbe, 0x1b<br />
, 0xfc, 0&#215;56, 0x3e, 0x4b, 0xc6, 0xd2, 0&#215;79, 0&#215;20, 0x9a, 0xdb, 0xc0, 0xfe, 0&#215;78, 0xcd, 0x5a, 0xf4<br />
, 0x1f, 0xdd, 0xa8, 0&#215;33, 0&#215;88, 0&#215;07, 0xc7, 0&#215;31, 0xb1, 0&#215;12, 0&#215;10, 0&#215;59, 0&#215;27, 0&#215;80, 0xec, 0x5f<br />
, 0&#215;60, 0&#215;51, 0x7f, 0xa9, 0&#215;19, 0xb5, 0x4a, 0x0d, 0x2d, 0xe5, 0x7a, 0x9f, 0&#215;93, 0xc9, 0x9c, 0xef<br />
, 0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0&#215;83, 0&#215;53, 0&#215;99, 0&#215;61<br />
, 0&#215;17, 0x2b, 0&#215;04, 0x7e, 0xba, 0&#215;77, 0xd6, 0&#215;26, 0xe1, 0&#215;69, 0&#215;14, 0&#215;63, 0&#215;55, 0&#215;21, 0x0c, 0x7d };</p>
<p>return rsbox[num];<br />
}</p>
<p>int getSBoxValue(int num)<br />
{<br />
int sbox[256] =   {</p>
<p>0&#215;63, 0x7c, 0&#215;77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0&#215;30, 0&#215;01, 0&#215;67, 0x2b, 0xfe, 0xd7, 0xab, 0&#215;76,<br />
0xca, 0&#215;82, 0xc9, 0x7d, 0xfa, 0&#215;59, 0&#215;47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0&#215;72, 0xc0,<br />
0xb7, 0xfd, 0&#215;93, 0&#215;26, 0&#215;36, 0x3f, 0xf7, 0xcc, 0&#215;34, 0xa5, 0xe5, 0xf1, 0&#215;71, 0xd8, 0&#215;31, 0&#215;15,<br />
0&#215;04, 0xc7, 0&#215;23, 0xc3, 0&#215;18, 0&#215;96, 0&#215;05, 0x9a, 0&#215;07, 0&#215;12, 0&#215;80, 0xe2, 0xeb, 0&#215;27, 0xb2, 0&#215;75,<br />
0&#215;09, 0&#215;83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0&#215;52, 0x3b, 0xd6, 0xb3, 0&#215;29, 0xe3, 0x2f, 0&#215;84,<br />
0&#215;53, 0xd1, 0&#215;00, 0xed, 0&#215;20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0&#215;39, 0x4a, 0x4c, 0&#215;58, 0xcf,<br />
0xd0, 0xef, 0xaa, 0xfb, 0&#215;43, 0x4d, 0&#215;33, 0&#215;85, 0&#215;45, 0xf9, 0&#215;02, 0x7f, 0&#215;50, 0x3c, 0x9f, 0xa8,<br />
0&#215;51, 0xa3, 0&#215;40, 0x8f, 0&#215;92, 0x9d, 0&#215;38, 0xf5, 0xbc, 0xb6, 0xda, 0&#215;21, 0&#215;10, 0xff, 0xf3, 0xd2,<br />
0xcd, 0x0c, 0&#215;13, 0xec, 0x5f, 0&#215;97, 0&#215;44, 0&#215;17, 0xc4, 0xa7, 0x7e, 0x3d, 0&#215;64, 0x5d, 0&#215;19, 0&#215;73,<br />
0&#215;60, 0&#215;81, 0x4f, 0xdc, 0&#215;22, 0x2a, 0&#215;90, 0&#215;88, 0&#215;46, 0xee, 0xb8, 0&#215;14, 0xde, 0x5e, 0x0b, 0xdb,<br />
0xe0, 0&#215;32, 0x3a, 0x0a, 0&#215;49, 0&#215;06, 0&#215;24, 0x5c, 0xc2, 0xd3, 0xac, 0&#215;62, 0&#215;91, 0&#215;95, 0xe4, 0&#215;79,<br />
0xe7, 0xc8, 0&#215;37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0&#215;56, 0xf4, 0xea, 0&#215;65, 0x7a, 0xae, 0&#215;08,<br />
0xba, 0&#215;78, 0&#215;25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0&#215;74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a,<br />
0&#215;70, 0x3e, 0xb5, 0&#215;66, 0&#215;48, 0&#215;03, 0xf6, 0x0e, 0&#215;61, 0&#215;35, 0&#215;57, 0xb9, 0&#215;86, 0xc1, 0x1d, 0x9e,<br />
0xe1, 0xf8, 0&#215;98, 0&#215;11, 0&#215;69, 0xd9, 0x8e, 0&#215;94, 0x9b, 0x1e, 0&#215;87, 0xe9, 0xce, 0&#215;55, 0&#215;28, 0xdf,<br />
0x8c, 0xa1, 0&#215;89, 0x0d, 0xbf, 0xe6, 0&#215;42, 0&#215;68, 0&#215;41, 0&#215;99, 0x2d, 0x0f, 0xb0, 0&#215;54, 0xbb, 0&#215;16 };<br />
return sbox[num];<br />
}</p>
<p>int Rcon[255] = {<br />
0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a,<br />
0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39,<br />
0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a,<br />
0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8,<br />
0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef,<br />
0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc,<br />
0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b,<br />
0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3,<br />
0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94,<br />
0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20,<br />
0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35,<br />
0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f,<br />
0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04,<br />
0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63,<br />
0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd,<br />
0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb  };</p>
<p>void KeyExpansion()<br />
{<br />
int i,j;<br />
unsigned char temp[4],k;</p>
<p>for(i=0;i&lt;Nk;i++)<br />
{<br />
RoundKey[i*4]=Key[i*4];<br />
RoundKey[i*4+1]=Key[i*4+1];<br />
RoundKey[i*4+2]=Key[i*4+2];<br />
RoundKey[i*4+3]=Key[i*4+3];<br />
}</p>
<p>while (i &lt; (Nb * (Nr+1)))<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
temp[j]=RoundKey[(i-1) * 4 + j];<br />
}<br />
if (i % Nk == 0)<br />
{</p>
<p>{<br />
k = temp[0];<br />
temp[0] = temp[1];<br />
temp[1] = temp[2];<br />
temp[2] = temp[3];<br />
temp[3] = k;<br />
}</p>
<p>{<br />
temp[0]=getSBoxValue(temp[0]);<br />
temp[1]=getSBoxValue(temp[1]);<br />
temp[2]=getSBoxValue(temp[2]);<br />
temp[3]=getSBoxValue(temp[3]);<br />
}</p>
<p>temp[0] =  temp[0] ^ Rcon[i/Nk];<br />
}<br />
else if (Nk &gt; 6 &amp;&amp; i % Nk == 4)<br />
{</p>
<p>{<br />
temp[0]=getSBoxValue(temp[0]);<br />
temp[1]=getSBoxValue(temp[1]);<br />
temp[2]=getSBoxValue(temp[2]);<br />
temp[3]=getSBoxValue(temp[3]);<br />
}<br />
}<br />
RoundKey[i*4+0] = RoundKey[(i-Nk)*4+0] ^ temp[0];<br />
RoundKey[i*4+1] = RoundKey[(i-Nk)*4+1] ^ temp[1];<br />
RoundKey[i*4+2] = RoundKey[(i-Nk)*4+2] ^ temp[2];<br />
RoundKey[i*4+3] = RoundKey[(i-Nk)*4+3] ^ temp[3];<br />
i++;<br />
}<br />
}</p>
<p>void AddRoundKey(int round)<br />
{<br />
int i,j;<br />
for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
state[j][i] ^= RoundKey[round * Nb * 4 + i * Nb + j];<br />
}<br />
}<br />
}</p>
<p>void InvSubBytes()<br />
{<br />
int i,j;<br />
for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
state[i][j] = getSBoxInvert(state[i][j]);</p>
<p>}<br />
}<br />
}</p>
<p>void InvShiftRows()<br />
{<br />
unsigned char temp;</p>
<p>temp=state[1][3];<br />
state[1][3]=state[1][2];<br />
state[1][2]=state[1][1];<br />
state[1][1]=state[1][0];<br />
state[1][0]=temp;</p>
<p>temp=state[2][0];<br />
state[2][0]=state[2][2];<br />
state[2][2]=temp;</p>
<p>temp=state[2][1];<br />
state[2][1]=state[2][3];<br />
state[2][3]=temp;</p>
<p>temp=state[3][0];<br />
state[3][0]=state[3][1];<br />
state[3][1]=state[3][2];<br />
state[3][2]=state[3][3];<br />
state[3][3]=temp;<br />
}</p>
<p>#define xtime(x)   ((x&lt;&lt;1) ^ (((x&gt;&gt;7) &amp; 1) * 0x1b))<br />
#define Multiply(x,y) (((y &amp; 1) * x) ^ ((y&gt;&gt;1 &amp; 1) * xtime(x)) ^ ((y&gt;&gt;2 &amp; 1) * xtime(xtime(x))) ^ ((y&gt;&gt;3 &amp; 1) * xtime(xtime(xtime(x)))) ^ ((y&gt;&gt;4 &amp; 1) * xtime(xtime(xtime(xtime(x))))))</p>
<p>void InvMixColumns()<br />
{<br />
int i;<br />
unsigned char a,b,c,d;<br />
for(i=0;i&lt;4;i++)<br />
{</p>
<p>a = state[0][i];<br />
b = state[1][i];<br />
c = state[2][i];<br />
d = state[3][i];</p>
<p>state[0][i] = Multiply(a, 0x0e) ^ Multiply(b, 0x0b) ^ Multiply(c, 0x0d) ^ Multiply(d, 0&#215;09);<br />
state[1][i] = Multiply(a, 0&#215;09) ^ Multiply(b, 0x0e) ^ Multiply(c, 0x0b) ^ Multiply(d, 0x0d);<br />
state[2][i] = Multiply(a, 0x0d) ^ Multiply(b, 0&#215;09) ^ Multiply(c, 0x0e) ^ Multiply(d, 0x0b);<br />
state[3][i] = Multiply(a, 0x0b) ^ Multiply(b, 0x0d) ^ Multiply(c, 0&#215;09) ^ Multiply(d, 0x0e);<br />
}<br />
}</p>
<p>void InvCipher()<br />
{<br />
int i,j,round=0;</p>
<p>for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
state[j][i] = in[i*4 + j];<br />
}<br />
}</p>
<p>AddRoundKey(Nr);</p>
<p>for(round=Nr-1;round&gt;0;round&#8211;)<br />
{<br />
InvShiftRows();<br />
InvSubBytes();<br />
AddRoundKey(round);<br />
InvMixColumns();<br />
}</p>
<p>InvShiftRows();<br />
InvSubBytes();<br />
AddRoundKey(0);</p>
<p>for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
out[i*4+j]=state[j][i];<br />
}<br />
}<br />
}<br />
void main()<br />
{<br />
int i;<br />
unsigned char temp[32] = {0&#215;00  ,0&#215;01  ,0&#215;02  ,0&#215;03  ,0&#215;04  ,0&#215;05  ,0&#215;06  ,0&#215;07  ,0&#215;08  ,0&#215;09  ,0x0a  ,0x0b  ,0x0c  ,0x0d  ,0x0e  ,0x0f};<br />
unsigned char temp2[16]= {0&#215;69  ,0xc4  ,0xe0  ,0xd8  ,0x6a  ,0x7b  ,0&#215;04  ,0&#215;30  ,0xd8  ,0xcd  ,0xb7  ,0&#215;80  ,0&#215;70  ,0xb4  ,0xc5  ,0x5a};<br />
printf(&#8220;********************************************************************************\n\n&#8221;);<br />
printf(&#8221;                                      WELCOME\n&#8221;);<br />
printf(&#8221;             ANDA TELAH MEMASUKI PROGRAM ADVANCE ENCRYPTION STANDARD\n&#8221;);<br />
printf(&#8221;                                 PROGRAM DEKRIPSI\n&#8221;);<br />
printf(&#8221;                    KARYA : NEO FAJAR BAWANA KONTA DEWA DANU\n\n&#8221;);<br />
printf(&#8220;********************************************************************************\n\n&#8221;);</p>
<p>while(Nr!=128 &amp;&amp; Nr!=192 &amp;&amp; Nr!=256)<br />
{<br />
printf(&#8220;Masukan Panjang Kunci (128, 192 or 256 only): &#8220;);<br />
scanf(&#8220;%d&#8221;,&amp;Nr);<br />
}<br />
Nk = Nr / 32;<br />
Nr = Nk + 6;</p>
<p>for(i=0;i&lt;Nk*4;i++)<br />
{<br />
Key[i]=temp[i];<br />
in[i]=temp2[i];<br />
}</p>
<p>flushall();</p>
<p>printf(&#8220;Masukan Kunci dalam Heksadesimal: &#8220;);<br />
for(i=0;i&lt;Nk*4;i++)<br />
{<br />
scanf(&#8220;%x&#8221;,&amp;Key[i]);<br />
}</p>
<p>printf(&#8220;Masukan Ciphertext dalam Heksadesimal: &#8220;);<br />
for(i=0;i&lt;Nb*4;i++)<br />
{<br />
scanf(&#8220;%x&#8221;,&amp;in[i]);<br />
}</p>
<p>KeyExpansion();<br />
InvCipher();<br />
printf(&#8220;\nTeks Dekripsi:\n&#8221;);<br />
for(i=0;i&lt;Nb*4;i++)<br />
{<br />
printf(&#8220;%02x &#8220;,out[i]);<br />
}<br />
printf(&#8220;\n\n&#8221;);<br />
getch();<br />
}</p>
<p>NOTE :</p>
<p>Program ini masih memiliki banyak kekurangan,,</p>
<p>Mohon jika memasuki Blog ini untuk memberikan komentar dan mengoreksi program ini&#8230;thx!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=42&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/05/05/dekripsi-aes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>ENKRIPSI AES</title>
		<link>http://sisyboy.wordpress.com/2008/05/05/enkripsi-aes/</link>
		<comments>http://sisyboy.wordpress.com/2008/05/05/enkripsi-aes/#comments</comments>
		<pubDate>Mon, 05 May 2008 13:21:43 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Pemrograman Neo]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/?p=41</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; #define Nb 4 int Nr=0; int Nk=0; unsigned char in[16], out[16], state[4][4]; unsigned char RoundKey[240]; unsigned char Key[32]; int getSBoxValue(int num) { int sbox[256] = { 0&#215;63, 0x7c, 0&#215;77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0&#215;30, 0&#215;01, 0&#215;67, 0x2b, 0xfe, 0xd7, 0xab, 0&#215;76, 0xca, 0&#215;82, 0xc9, 0x7d, 0xfa, 0&#215;59, 0&#215;47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=41&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;<br />
#define Nb 4</p>
<p>int Nr=0;<br />
int Nk=0;</p>
<p>unsigned char in[16], out[16], state[4][4];<br />
unsigned char RoundKey[240];<br />
unsigned char Key[32];</p>
<p>int getSBoxValue(int num)<br />
{<br />
int sbox[256] =   {</p>
<p>0&#215;63, 0x7c, 0&#215;77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0&#215;30, 0&#215;01, 0&#215;67, 0x2b, 0xfe, 0xd7, 0xab, 0&#215;76,<br />
0xca, 0&#215;82, 0xc9, 0x7d, 0xfa, 0&#215;59, 0&#215;47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0&#215;72, 0xc0,<br />
0xb7, 0xfd, 0&#215;93, 0&#215;26, 0&#215;36, 0x3f, 0xf7, 0xcc, 0&#215;34, 0xa5, 0xe5, 0xf1, 0&#215;71, 0xd8, 0&#215;31, 0&#215;15,<br />
0&#215;04, 0xc7, 0&#215;23, 0xc3, 0&#215;18, 0&#215;96, 0&#215;05, 0x9a, 0&#215;07, 0&#215;12, 0&#215;80, 0xe2, 0xeb, 0&#215;27, 0xb2, 0&#215;75,<br />
0&#215;09, 0&#215;83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0&#215;52, 0x3b, 0xd6, 0xb3, 0&#215;29, 0xe3, 0x2f, 0&#215;84,<br />
0&#215;53, 0xd1, 0&#215;00, 0xed, 0&#215;20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0&#215;39, 0x4a, 0x4c, 0&#215;58, 0xcf,<br />
0xd0, 0xef, 0xaa, 0xfb, 0&#215;43, 0x4d, 0&#215;33, 0&#215;85, 0&#215;45, 0xf9, 0&#215;02, 0x7f, 0&#215;50, 0x3c, 0x9f, 0xa8,<br />
0&#215;51, 0xa3, 0&#215;40, 0x8f, 0&#215;92, 0x9d, 0&#215;38, 0xf5, 0xbc, 0xb6, 0xda, 0&#215;21, 0&#215;10, 0xff, 0xf3, 0xd2,<br />
0xcd, 0x0c, 0&#215;13, 0xec, 0x5f, 0&#215;97, 0&#215;44, 0&#215;17, 0xc4, 0xa7, 0x7e, 0x3d, 0&#215;64, 0x5d, 0&#215;19, 0&#215;73,<br />
0&#215;60, 0&#215;81, 0x4f, 0xdc, 0&#215;22, 0x2a, 0&#215;90, 0&#215;88, 0&#215;46, 0xee, 0xb8, 0&#215;14, 0xde, 0x5e, 0x0b, 0xdb,<br />
0xe0, 0&#215;32, 0x3a, 0x0a, 0&#215;49, 0&#215;06, 0&#215;24, 0x5c, 0xc2, 0xd3, 0xac, 0&#215;62, 0&#215;91, 0&#215;95, 0xe4, 0&#215;79,<br />
0xe7, 0xc8, 0&#215;37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0&#215;56, 0xf4, 0xea, 0&#215;65, 0x7a, 0xae, 0&#215;08,<br />
0xba, 0&#215;78, 0&#215;25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0&#215;74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a,<br />
0&#215;70, 0x3e, 0xb5, 0&#215;66, 0&#215;48, 0&#215;03, 0xf6, 0x0e, 0&#215;61, 0&#215;35, 0&#215;57, 0xb9, 0&#215;86, 0xc1, 0x1d, 0x9e,<br />
0xe1, 0xf8, 0&#215;98, 0&#215;11, 0&#215;69, 0xd9, 0x8e, 0&#215;94, 0x9b, 0x1e, 0&#215;87, 0xe9, 0xce, 0&#215;55, 0&#215;28, 0xdf,<br />
0x8c, 0xa1, 0&#215;89, 0x0d, 0xbf, 0xe6, 0&#215;42, 0&#215;68, 0&#215;41, 0&#215;99, 0x2d, 0x0f, 0xb0, 0&#215;54, 0xbb, 0&#215;16 };<br />
return sbox[num];<br />
}</p>
<p>int Rcon[255] = {<br />
0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a,<br />
0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39,<br />
0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a,<br />
0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8,<br />
0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef,<br />
0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc,<br />
0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b,<br />
0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3,<br />
0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94,<br />
0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04, 0&#215;08, 0&#215;10, 0&#215;20,<br />
0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63, 0xc6, 0&#215;97, 0&#215;35,<br />
0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd, 0&#215;61, 0xc2, 0x9f,<br />
0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb, 0x8d, 0&#215;01, 0&#215;02, 0&#215;04,<br />
0&#215;08, 0&#215;10, 0&#215;20, 0&#215;40, 0&#215;80, 0x1b, 0&#215;36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0&#215;63,<br />
0xc6, 0&#215;97, 0&#215;35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0&#215;91, 0&#215;39, 0&#215;72, 0xe4, 0xd3, 0xbd,<br />
0&#215;61, 0xc2, 0x9f, 0&#215;25, 0x4a, 0&#215;94, 0&#215;33, 0&#215;66, 0xcc, 0&#215;83, 0x1d, 0x3a, 0&#215;74, 0xe8, 0xcb  };</p>
<p>void KeyExpansion()<br />
{<br />
int i,j;<br />
unsigned char temp[4],k;</p>
<p>for(i=0;i&lt;Nk;i++)<br />
{<br />
RoundKey[i*4]=Key[i*4];<br />
RoundKey[i*4+1]=Key[i*4+1];<br />
RoundKey[i*4+2]=Key[i*4+2];<br />
RoundKey[i*4+3]=Key[i*4+3];<br />
}</p>
<p>while (i &lt; (Nb * (Nr+1)))<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
temp[j]=RoundKey[(i-1) * 4 + j];<br />
}<br />
if (i % Nk == 0)<br />
{<br />
{<br />
k = temp[0];<br />
temp[0] = temp[1];<br />
temp[1] = temp[2];<br />
temp[2] = temp[3];<br />
temp[3] = k;<br />
}</p>
<p>{<br />
temp[0]=getSBoxValue(temp[0]);<br />
temp[1]=getSBoxValue(temp[1]);<br />
temp[2]=getSBoxValue(temp[2]);<br />
temp[3]=getSBoxValue(temp[3]);<br />
}</p>
<p>temp[0] =  temp[0] ^ Rcon[i/Nk];<br />
}<br />
else if (Nk &gt; 6 &amp;&amp; i % Nk == 4)<br />
{</p>
<p>{<br />
temp[0]=getSBoxValue(temp[0]);<br />
temp[1]=getSBoxValue(temp[1]);<br />
temp[2]=getSBoxValue(temp[2]);<br />
temp[3]=getSBoxValue(temp[3]);<br />
}<br />
}<br />
RoundKey[i*4+0] = RoundKey[(i-Nk)*4+0] ^ temp[0];<br />
RoundKey[i*4+1] = RoundKey[(i-Nk)*4+1] ^ temp[1];<br />
RoundKey[i*4+2] = RoundKey[(i-Nk)*4+2] ^ temp[2];<br />
RoundKey[i*4+3] = RoundKey[(i-Nk)*4+3] ^ temp[3];<br />
i++;<br />
}<br />
}</p>
<p>void AddRoundKey(int round)<br />
{<br />
int i,j;<br />
for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
state[j][i] ^= RoundKey[round * Nb * 4 + i * Nb + j];<br />
}<br />
}<br />
}</p>
<p>void SubBytes()<br />
{<br />
int i,j;<br />
for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
state[i][j] = getSBoxValue(state[i][j]);</p>
<p>}<br />
}<br />
}</p>
<p>void ShiftRows()<br />
{<br />
unsigned char temp;<br />
temp=state[1][0];<br />
state[1][0]=state[1][1];<br />
state[1][1]=state[1][2];<br />
state[1][2]=state[1][3];<br />
state[1][3]=temp;</p>
<p>temp=state[2][0];<br />
state[2][0]=state[2][2];<br />
state[2][2]=temp;</p>
<p>temp=state[2][1];<br />
state[2][1]=state[2][3];<br />
state[2][3]=temp;</p>
<p>temp=state[3][0];<br />
state[3][0]=state[3][3];<br />
state[3][3]=state[3][2];<br />
state[3][2]=state[3][1];<br />
state[3][1]=temp;<br />
}</p>
<p>#define xtime(x)   ((x&lt;&lt;1) ^ (((x&gt;&gt;7) &amp; 1) * 0x1b))</p>
<p>void MixColumns()<br />
{<br />
int i;<br />
unsigned char Tmp,Tm,t;<br />
for(i=0;i&lt;4;i++)<br />
{<br />
t=state[0][i];<br />
Tmp = state[0][i] ^ state[1][i] ^ state[2][i] ^ state[3][i] ;<br />
Tm = state[0][i] ^ state[1][i] ; Tm = xtime(Tm); state[0][i] ^= Tm ^ Tmp ;<br />
Tm = state[1][i] ^ state[2][i] ; Tm = xtime(Tm); state[1][i] ^= Tm ^ Tmp ;<br />
Tm = state[2][i] ^ state[3][i] ; Tm = xtime(Tm); state[2][i] ^= Tm ^ Tmp ;<br />
Tm = state[3][i] ^ t ; Tm = xtime(Tm); state[3][i] ^= Tm ^ Tmp ;<br />
}<br />
}</p>
<p>void Cipher()<br />
{<br />
int i,j,round=0;</p>
<p>for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
state[j][i] = in[i*4 + j];<br />
}<br />
}</p>
<p>AddRoundKey(0);<br />
for(round=1;round&lt;Nr;round++)<br />
{<br />
SubBytes();<br />
ShiftRows();<br />
MixColumns();<br />
AddRoundKey(round);<br />
}</p>
<p>SubBytes();<br />
ShiftRows();<br />
AddRoundKey(Nr);</p>
<p>for(i=0;i&lt;4;i++)<br />
{<br />
for(j=0;j&lt;4;j++)<br />
{<br />
out[i*4+j]=state[j][i];<br />
}<br />
}<br />
}<br />
void main()<br />
{<br />
int i;<br />
unsigned char temp[16] = {0&#215;00  ,0&#215;01  ,0&#215;02  ,0&#215;03  ,0&#215;04  ,0&#215;05  ,0&#215;06  ,0&#215;07  ,0&#215;08  ,0&#215;09  ,0x0a  ,0x0b  ,0x0c  ,0x0d  ,0x0e  ,0x0f};<br />
unsigned char temp2[16]= {0&#215;00  ,0&#215;11  ,0&#215;22  ,0&#215;33  ,0&#215;44  ,0&#215;55  ,0&#215;66  ,0&#215;77  ,0&#215;88  ,0&#215;99  ,0xaa  ,0xbb  ,0xcc  ,0xdd  ,0xee  ,0xff};</p>
<p>printf(&#8220;********************************************************************************\n\n&#8221;);<br />
printf(&#8221;                                      WELCOME\n&#8221;);<br />
printf(&#8221;             ANDA TELAH MEMASUKI PROGRAM ADVANCE ENCRYPTION STANDARD\n&#8221;);<br />
printf(&#8221;                                 PROGRAM ENKRIPSI\n&#8221;);<br />
printf(&#8221;                    KARYA : NEO FAJAR BAWANA KONTA DEWA DANU\n\n&#8221;);<br />
printf(&#8220;********************************************************************************\n\n&#8221;);</p>
<p>while(Nr!=128 &amp;&amp; Nr!=192 &amp;&amp; Nr!=256)<br />
{<br />
printf(&#8220;Masukan Panjang Kunci (128, 192 or 256 only): &#8220;);<br />
scanf(&#8220;%d&#8221;,&amp;Nr);<br />
}</p>
<p>Nk = Nr / 32;<br />
Nr = Nk + 6;</p>
<p>for(i=0;i&lt;Nk*4;i++)<br />
{<br />
Key[i]=temp[i];<br />
in[i]=temp2[i];<br />
}</p>
<p>printf(&#8220;Masukan Kunci dalam Heksadesimal: &#8220;);<br />
for(i=0;i&lt;Nk*4;i++)<br />
{<br />
scanf(&#8220;%x&#8221;,&amp;Key[i]);<br />
}</p>
<p>printf(&#8220;Masukan Plaintext dalam Heksadesimal: &#8220;);<br />
for(i=0;i&lt;Nb*4;i++)<br />
{<br />
scanf(&#8220;%x&#8221;,&amp;in[i]);<br />
}</p>
<p>KeyExpansion();<br />
Cipher();<br />
printf(&#8220;\nTeks enkripsi:\n&#8221;);<br />
for(i=0;i&lt;Nk*4;i++)<br />
{<br />
printf(&#8220;%02x &#8220;,out[i]);<br />
}<br />
printf(&#8220;\n\n&#8221;);<br />
getch();<br />
}</p>
<p>NOTE :</p>
<p>program ini masih banyak kekurangan,,</p>
<p>Mohon jika memasuki Blog ini untuk memberikan komentar dan memperbaiki program ini&#8230;thx!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=41&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/05/05/enkripsi-aes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>Bentuk Kriptosistem DES</title>
		<link>http://sisyboy.wordpress.com/2008/01/27/bentuk-kriptosistem-des/</link>
		<comments>http://sisyboy.wordpress.com/2008/01/27/bentuk-kriptosistem-des/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 02:37:58 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Kriptografi]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/2008/01/27/bentuk-kriptosistem-des/</guid>
		<description><![CDATA[DES<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=40&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://sisyboy.files.wordpress.com/2008/01/des.doc" title="DES">DES</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=40&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/01/27/bentuk-kriptosistem-des/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>The Beauty Of Number</title>
		<link>http://sisyboy.wordpress.com/2008/01/26/the-beauty-of-number/</link>
		<comments>http://sisyboy.wordpress.com/2008/01/26/the-beauty-of-number/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 19:30:28 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Diskrit]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/?p=38</guid>
		<description><![CDATA[Number<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=38&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://sisyboy.files.wordpress.com/2008/01/the-beauty-in-numbers.ppt" title="Number">Number</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=38&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/01/26/the-beauty-of-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>PigeonHole</title>
		<link>http://sisyboy.wordpress.com/2008/01/26/36/</link>
		<comments>http://sisyboy.wordpress.com/2008/01/26/36/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 19:15:49 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Diskrit]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/2008/01/26/36/</guid>
		<description><![CDATA[Pigeonhole<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=36&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://sisyboy.files.wordpress.com/2008/01/pigeonhole.ppt" title="Pigeonhole">Pigeonhole</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=36&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/01/26/36/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>Kuliah Diskrit</title>
		<link>http://sisyboy.wordpress.com/2008/01/26/kuliah-diskrit/</link>
		<comments>http://sisyboy.wordpress.com/2008/01/26/kuliah-diskrit/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 19:06:36 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Diskrit]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/?p=34</guid>
		<description><![CDATA[Pendahuluan<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=34&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://sisyboy.files.wordpress.com/2008/01/0708-matematika-diskrit-pendahuluan.ppt" title="Pendahuluan">Pendahuluan</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=34&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/01/26/kuliah-diskrit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
		<item>
		<title>Source Code ElGamal</title>
		<link>http://sisyboy.wordpress.com/2008/01/26/source-code-elgamal/</link>
		<comments>http://sisyboy.wordpress.com/2008/01/26/source-code-elgamal/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 18:46:17 +0000</pubDate>
		<dc:creator>Neo</dc:creator>
				<category><![CDATA[Kriptografi]]></category>

		<guid isPermaLink="false">http://sisyboy.wordpress.com/2008/01/26/source-code-elgamal/</guid>
		<description><![CDATA[Source Code ElGamal<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=32&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://sisyboy.files.wordpress.com/2008/01/elgamal.txt" title="Source Code ElGamal">Source Code ElGamal</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sisyboy.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sisyboy.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sisyboy.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sisyboy.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sisyboy.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sisyboy.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sisyboy.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sisyboy.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sisyboy.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sisyboy.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sisyboy.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sisyboy.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sisyboy.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sisyboy.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sisyboy.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sisyboy.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sisyboy.wordpress.com&amp;blog=2217523&amp;post=32&amp;subd=sisyboy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sisyboy.wordpress.com/2008/01/26/source-code-elgamal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b19d30e1296efe2f02e3077b678e53db?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sisyboy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
