<?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>Okashini &#187; Informática</title>
	<atom:link href="http://okashini.com/tags/informatica/feed/" rel="self" type="application/rss+xml" />
	<link>http://okashini.com</link>
	<description>Curiosidades, programación, tecnología, actualidad, astronomía y cualquier tema que se me pase por la cabeza</description>
	<lastBuildDate>Wed, 16 May 2012 20:41:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>El cifrado César</title>
		<link>http://okashini.com/el-cifrado-cesar-3/</link>
		<comments>http://okashini.com/el-cifrado-cesar-3/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 20:26:38 +0000</pubDate>
		<dc:creator>Kamugo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[Matemáticas y números]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[matemáticas]]></category>

		<guid isPermaLink="false">http://okashini.com/?p=908</guid>
		<description><![CDATA[El cifrado César o por desplazamiento es una de las formas más simples de ocultar mensajes, aunque también una de las más fáciles de descifrar. El método no tiene más misterio que desplazar cada letra un número determinado de posiciones dentro del alfabeto de forma cíclica, es decir, si se llega al final se vuelve [...]]]></description>
			<content:encoded><![CDATA[
<p>El cifrado César o <strong>por desplazamiento</strong> es una de las formas más simples de ocultar mensajes, aunque también una de las más fáciles de descifrar. El método no tiene más misterio que desplazar cada letra un número determinado de posiciones dentro del alfabeto de forma cíclica, es decir, si se llega al final se vuelve a empezar por el principio. Por ejemplo, con un desplazamiento de 3 posiciones a la derecha.</p>
<p><em><strong><span style="font-weight: normal;">Alfabeto sin cifrar:</span> </strong></em>ABCDEFGHIJKLMNÑOPQRSTUVWXYZ.<br /> <em><strong><span style="font-weight: normal;">Alfabeto cifrado:</span> </strong></em>DEFGHIJKLMNÑOPQRSTUVWXYZABC.</p>
<p>Texto sin cifrar:<em> Estoy leyendo Okashini</em>.<br /> Texto cifrado:<em> Hvwrb ohbhqgr Rndvklql</em>.</p>
<p>El origen del cifrado lo encontramos hace más de 2.000 años. Corría el siglo I a.C cuando Julio César utilizó este cifrado con un desplazamiento de 3 posiciones a la derecha para ocultar mensajes en tiempos de guerra.</p>
<p>El descifrado es igual de sencillo si se conoce el número de desplazamientos que hay que realizar. Si no se conoce hay que trabajar algo más, aunque solamente habría que probar todas las combinaciones posibles, probando las primeras palabras hasta encontrar alguna frase coherente, y después traducir todo el texto. Podrían parecer demasiadas combinaciones, pero en el caso de nuestro alfabeto actual son solamente 27 posibilidades, pocas en comparación con otros cifrados. ¿Os imagináis que hubiera la misma cantidad que <a href="http://es.wikipedia.org/wiki/Hanzi">kanjis</a> japoneses o <a href="http://es.wikipedia.org/wiki/Hanzi">hanzis</a> chinos?</p>
<ul>
	<li><em>Vjkf vj le kvokf tzwiruf r kirmvj uvc dvkfuf Tvjri tfe 43 gfjztzfevj uv uvjgcrqrdzvekf r cr uvivtyr.</em></li>
</ul>
<p>¿Podéis descifrarlo?</p>
<p>Como curiosidad, este cifrado se utiliza para otros más complejos como el de <a href="http://es.wikipedia.org/wiki/Cifrado_de_Vigen%C3%A8re">Vigenère</a>.</p>
<p>¿Conocéis otros sistemas de cifrado?</p>
<p>Para los más técnicos, os dejo un programa en C++ que codifica textos.</p>

<div class="codecolorer-container cpp railscasts .codecolorer-container { border-radius: 5px; }" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:100%;"><div class="cpp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">// Cifrado César</span><br />
<span style="color: #666666;">// No se cifran letras con tilde, ñ, ç, ...</span><br />
&nbsp;<br />
<span style="color: #339900;">#include &lt;iostream&gt;</span><br />
<span style="color: #339900;">#include &lt;string&gt;</span><br />
<span style="color: #0000ff;">using</span> <span style="color: #0000ff;">namespace</span> std<span style="color: #008080;">;</span><br />
&nbsp;<br />
<span style="color: #0000ff;">void</span> cesar<span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> string<span style="color: #000040;">&amp;</span> s, <span style="color: #0000ff;">int</span> n<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">for</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> i <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span> i <span style="color: #000080;">&lt;</span> s.<span style="color: #007788;">size</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> <span style="color: #000040;">++</span>i<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">char</span> c <span style="color: #000080;">=</span> s<span style="color: #008000;">&#91;</span>i<span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>c <span style="color: #000080;">&gt;=</span> <span style="color: #FF0000;">'a'</span> and c <span style="color: #000080;">&lt;=</span> <span style="color: #FF0000;">'z'</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">// Minúsculas</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>c<span style="color: #000040;">+</span>n<span style="color: #000080;">&gt;</span><span style="color: #FF0000;">'z'</span><span style="color: #008000;">&#41;</span> <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #0000ff;">char</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">'a'</span><span style="color: #000040;">+</span>c<span style="color: #000040;">+</span>n<span style="color: #000040;">-</span><span style="color: #FF0000;">'z'</span><span style="color: #000040;">-</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #0000ff;">char</span><span style="color: #008000;">&#40;</span>c<span style="color: #000040;">+</span>n<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>c <span style="color: #000080;">&gt;=</span> <span style="color: #FF0000;">'A'</span> and c <span style="color: #000080;">&lt;=</span> <span style="color: #FF0000;">'Z'</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666;">// Mayúsculas</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>c<span style="color: #000040;">+</span>n<span style="color: #000080;">&gt;</span><span style="color: #FF0000;">'Z'</span><span style="color: #008000;">&#41;</span> <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #0000ff;">char</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">'A'</span><span style="color: #000040;">+</span>c<span style="color: #000040;">+</span>n<span style="color: #000040;">-</span><span style="color: #FF0000;">'Z'</span><span style="color: #000040;">-</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #0000ff;">char</span><span style="color: #008000;">&#40;</span>c<span style="color: #000040;">+</span>n<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> c<span style="color: #008080;">;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<span style="color: #008000;">&#125;</span><br />
&nbsp;<br />
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">int</span> n<span style="color: #008080;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666;">// Número de posiciones a desplazar</span><br />
&nbsp; &nbsp; <span style="color: #0000dd;">cin</span> <span style="color: #000080;">&gt;&gt;</span> n<span style="color: #008080;">;</span><br />
&nbsp; &nbsp; n <span style="color: #000040;">%</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">26</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; string s<span style="color: #008080;">;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">while</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">cin</span> <span style="color: #000080;">&gt;&gt;</span> s<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; cesar<span style="color: #008000;">&#40;</span>s, n<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">' '</span><span style="color: #008080;">;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> endl<span style="color: #008080;">;</span><br />
<span style="color: #008000;">&#125;</span></div></div>

]]></content:encoded>
			<wfw:commentRss>http://okashini.com/el-cifrado-cesar-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Informática para tontos</title>
		<link>http://okashini.com/informatica-para-tontos/</link>
		<comments>http://okashini.com/informatica-para-tontos/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 18:00:28 +0000</pubDate>
		<dc:creator>Kamugo</dc:creator>
				<category><![CDATA[Citas]]></category>
		<category><![CDATA[Informática]]></category>

		<guid isPermaLink="false">http://okashini.com/?p=668</guid>
		<description><![CDATA[Si piensas que los usuarios de tus programas son idiotas, sólo los idiotas usarán tus programas Linus Torvalds, ingeniero de Software finlandés y creador del primer kernel de GNU/Linux]]></description>
			<content:encoded><![CDATA[<blockquote>
<p style="text-align: left;">Si piensas que los usuarios de tus programas son idiotas, sólo los idiotas usarán tus programas</p>
</blockquote>
<p style="text-align: right;">
<p style="text-align: right;"><a href="http://es.wikipedia.org/wiki/Linus_Torvalds"><strong>Linus Torvalds</strong></a>, ingeniero de Software finlandés y creador del primer kernel de GNU/Linux</p>
]]></content:encoded>
			<wfw:commentRss>http://okashini.com/informatica-para-tontos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discos duros</title>
		<link>http://okashini.com/discos-duros/</link>
		<comments>http://okashini.com/discos-duros/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 17:08:05 +0000</pubDate>
		<dc:creator>Kamugo</dc:creator>
				<category><![CDATA[Frikadas]]></category>
		<category><![CDATA[Física]]></category>
		<category><![CDATA[HDD]]></category>
		<category><![CDATA[Informática]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://okashini.com/?p=523</guid>
		<description><![CDATA[¿Qué hago con todos estos discos duros? No sé, ¿sirven para algo? Ni idea ¿Y si los ponemos todos en línea y&#8230;?]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><em>¿Qué hago con todos estos discos duros?<br />
No sé, ¿sirven para algo?<br />
Ni idea<br />
¿Y si los ponemos todos en línea y&#8230;?</em></p>
<p style="text-align: center;"><em><span style="text-align:center; display: block;"><a href="http://okashini.com/discos-duros/"><img src="http://img.youtube.com/vi/daRS98L9rHs/2.jpg" alt="" /></a></span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://okashini.com/discos-duros/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Humor Unix</title>
		<link>http://okashini.com/humor-unix/</link>
		<comments>http://okashini.com/humor-unix/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 12:19:51 +0000</pubDate>
		<dc:creator>Kamugo</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Informática]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://okashini.co.cc/?p=512</guid>
		<description><![CDATA[Hazme un sandwich ¿QUÉ? Hazlo tú Sudo Hazme un sandwich Vale Para que el que no lo entienda, sudo es un comando para ejecutar comandos con privilegio de superusuario]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-513" title="Sandwitch" src="http://okashini.com/wp-content/uploads/2008/12/sandwich1.png" alt="" width="300" height="249" /></p>
<p style="text-align: center;"><em>Hazme un sandwich
¿QUÉ? Hazlo tú
Sudo Hazme un sandwich
Vale</em></p>
<p style="text-align: left;">Para que el que no lo entienda, <a href="http://es.wikipedia.org/wiki/Sudo">sudo</a> es un comando para ejecutar comandos con privilegio de superusuario</p>]]></content:encoded>
			<wfw:commentRss>http://okashini.com/humor-unix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>El progreso de la tecnología de la información</title>
		<link>http://okashini.com/el-progreso-de-la-tecnologia-de-la-informacion/</link>
		<comments>http://okashini.com/el-progreso-de-la-tecnologia-de-la-informacion/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 11:11:16 +0000</pubDate>
		<dc:creator>Kamugo</dc:creator>
				<category><![CDATA[Curiosidades]]></category>
		<category><![CDATA[Informática]]></category>
		<category><![CDATA[progreso]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://okashini.co.cc/?p=490</guid>
		<description><![CDATA[Os dejo un vídeo sobre el avance tecnológico de hoy y el del futuro, muy interesante.]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Os dejo un vídeo sobre el avance tecnológico de hoy y el del futuro, muy interesante.</p>
<span style="text-align:center; display: block;"><a href="http://okashini.com/el-progreso-de-la-tecnologia-de-la-informacion/"><img src="http://img.youtube.com/vi/cL9Wu2kWwSY/2.jpg" alt="" /></a></span>
]]></content:encoded>
			<wfw:commentRss>http://okashini.com/el-progreso-de-la-tecnologia-de-la-informacion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>El juego de la vida</title>
		<link>http://okashini.com/el-juego-de-la-vida/</link>
		<comments>http://okashini.com/el-juego-de-la-vida/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 14:09:02 +0000</pubDate>
		<dc:creator>Kamugo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[Juegos]]></category>
		<category><![CDATA[vida artificial]]></category>

		<guid isPermaLink="false">http://okashini.co.cc/?p=436</guid>
		<description><![CDATA[El juego de la vida es, según la Wikipedia, un ejemplo de autómata celular, y uno de los orígenes de la vida artificial. La aplicación consiste en la relación de diferentes &#8216;células&#8217; que siguen unas sencillas normas, dependiendo de la situación, la célula desaparecerá, duplicará, etc. La situación puede acabar de 3 maneras diferentes: situación [...]]]></description>
			<content:encoded><![CDATA[<p>El <strong>juego de la vida</strong> es, según la Wikipedia, un ejemplo de autómata celular, y uno de los orígenes de la <a href="http://es.wikipedia.org/wiki/Vida_artificial">vida artificial</a>. La aplicación consiste en la relación de diferentes &#8216;células&#8217; que siguen unas sencillas normas, dependiendo de la situación, la célula desaparecerá, duplicará, etc. La situación puede acabar de 3 maneras diferentes: situación estable (las células no se mueven ni se destruyen), destrucción de todas las células, o creación de un sistema con movimiento o bucle.</p>
<p><strong>Enlaces relacionados:</p>
<ul>
<li><span style="font-weight: normal;"><a href="http://www.granvino.com/jam/stuff/juegos/gamoliyas/spanish/index.htm">Jugar al juego de la vida</a></span></li>
</ul>
<p></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://okashini.com/el-juego-de-la-vida/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

