<?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>DaW - Labs &#187; ASM</title>
	<atom:link href="http://www.daw-labs.com/category/programacion/asm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daw-labs.com</link>
	<description>¡La Informática al límite!</description>
	<lastBuildDate>Sat, 19 May 2012 17:56:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Cifrado César en ASM</title>
		<link>http://www.daw-labs.com/cifrado-cesar-en-asm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cifrado-cesar-en-asm</link>
		<comments>http://www.daw-labs.com/cifrado-cesar-en-asm/#comments</comments>
		<pubDate>Sun, 30 May 2010 03:46:50 +0000</pubDate>
		<dc:creator>WindHack</dc:creator>
				<category><![CDATA[ASM]]></category>
		<category><![CDATA[Criptografía/Esteganografía]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[cesar]]></category>
		<category><![CDATA[cifrado]]></category>
		<category><![CDATA[CronuX]]></category>

		<guid isPermaLink="false">http://daw-labs.com/?p=453</guid>
		<description><![CDATA[Versión en ASM del algoritmo de cifrado César, programada por CronuX. Cesar.inc: .data Cifrado db 128 Dup&#40;?&#41; msgerror db &#34;Ingresado Caracteres Invalidos&#34;,0 msgerrorclave db &#34;Clave Ingresada Invalida&#34;,0 &#160; .data? &#160; Nombre db 256 Dup&#40;?&#41; clave db 256 dup&#40;?&#41; Cesar.asm: ;**************************************** ;   @---------------------------------- ;   @ Autor original: [p3ll3] ;   @ Version original: Java ;   @ Autor&#8230;]]></description>
			<content:encoded><![CDATA[<p>Versión en ASM del algoritmo de cifrado César, programada por <strong>CronuX</strong>.</p>
<p><em>Cesar.inc</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="asm" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">.data</span>
Cifrado <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">128</span> <span style="color: #000000; font-weight: bold;">Dup</span><span style="color: #009900; font-weight: bold;">&#40;</span>?<span style="color: #009900; font-weight: bold;">&#41;</span>
msgerror <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #7f007f;">&quot;Ingresado Caracteres Invalidos&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">0</span>
msgerrorclave <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #7f007f;">&quot;Clave Ingresada Invalida&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">0</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">.data</span>?
&nbsp;
Nombre <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">256</span> <span style="color: #000000; font-weight: bold;">Dup</span><span style="color: #009900; font-weight: bold;">&#40;</span>?<span style="color: #009900; font-weight: bold;">&#41;</span>
clave <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">256</span> <span style="color: #000000; font-weight: bold;">dup</span><span style="color: #009900; font-weight: bold;">&#40;</span>?<span style="color: #009900; font-weight: bold;">&#41;</span></pre></div></div>

<p><em>Cesar.asm</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="asm" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">;****************************************</span>
<span style="color: #666666; font-style: italic;">;   @----------------------------------</span>
<span style="color: #666666; font-style: italic;">;   @ Autor original: [p3ll3]</span>
<span style="color: #666666; font-style: italic;">;   @ Version original: Java</span>
<span style="color: #666666; font-style: italic;">;   @ Autor modificacion: CronuX</span>
<span style="color: #666666; font-style: italic;">;   @ Version modificacion: ASM (Masm32)</span>
<span style="color: #666666; font-style: italic;">;   @ Sitio web:</span>
<span style="color: #666666; font-style: italic;">;      - http://foro.code-makers.net</span>
<span style="color: #666666; font-style: italic;">;  @----------------------------------</span>
<span style="color: #666666; font-style: italic;">;*****************************************</span>
<span style="color: #000000; font-weight: bold;">invoke</span> GetDlgItemText<span style="color: #339933;">,</span>hWin<span style="color: #339933;">,</span>EditNombre<span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">addr</span> Nombre<span style="color: #339933;">,</span><span style="color: #0000ff;">128</span>
<span style="color: #00007f; font-weight: bold;">xor</span> <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span><span style="color: #00007f;">eax</span>
<span style="color: #000000; font-weight: bold;">invoke</span> GetDlgItemText<span style="color: #339933;">,</span>hWin<span style="color: #339933;">,</span>Editclave<span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">addr</span> clave<span style="color: #339933;">,</span><span style="color: #0000ff;">18</span>
<span style="color: #000000; font-weight: bold;">invoke</span> atodw<span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">addr</span> clave
<span style="color: #00007f; font-weight: bold;">cmp</span> <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">19h</span>
<span style="color: #00007f; font-weight: bold;">jnl</span> errorclave
<span style="color: #00007f; font-weight: bold;">xor</span> <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span><span style="color: #00007f;">ecx</span>
<span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span><span style="color: #00007f;">eax</span>
<span style="color: #00007f; font-weight: bold;">xor</span> <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span><span style="color: #00007f;">ebx</span>
<span style="color: #00007f; font-weight: bold;">xor</span> <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span><span style="color: #00007f;">eax</span>
bucle<span style="color: #339933;">:</span>
<span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span> <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">ebx</span><span style="color: #339933;">+</span>Nombre<span style="color: #009900; font-weight: bold;">&#93;</span>
<span style="color: #00007f; font-weight: bold;">cmp</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">41h</span>
<span style="color: #00007f; font-weight: bold;">jl</span> <span style="color: #000000; font-weight: bold;">error</span>
<span style="color: #00007f; font-weight: bold;">cmp</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">5bh</span>
<span style="color: #00007f; font-weight: bold;">jl</span> suma
<span style="color: #00007f; font-weight: bold;">jmp</span> sigue
suma<span style="color: #339933;">:</span>
<span style="color: #00007f; font-weight: bold;">add</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span><span style="color: #0000ff;">32</span>
sigue<span style="color: #339933;">:</span>
<span style="color: #00007f; font-weight: bold;">cmp</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span><span style="color: #0000ff;">61h</span>
<span style="color: #00007f; font-weight: bold;">jl</span> <span style="color: #000000; font-weight: bold;">error</span>
<span style="color: #00007f; font-weight: bold;">cmp</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">7bh</span>
<span style="color: #00007f; font-weight: bold;">jnl</span> <span style="color: #000000; font-weight: bold;">error</span>
<span style="color: #00007f; font-weight: bold;">add</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span><span style="color: #00007f;">cl</span>
<span style="color: #00007f; font-weight: bold;">cmp</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span><span style="color: #0000ff;">7ah</span>
<span style="color: #00007f; font-weight: bold;">jbe</span> sigue2
<span style="color: #00007f; font-weight: bold;">sub</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span><span style="color: #0000ff;">7ah</span>
<span style="color: #00007f; font-weight: bold;">add</span> <span style="color: #00007f;">al</span><span style="color: #339933;">,</span><span style="color: #0000ff;">60h</span>
<span style="color: #00007f; font-weight: bold;">jmp</span> sigue2
sigue2<span style="color: #339933;">:</span>
<span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span> <span style="color: #009900; font-weight: bold;">&#91;</span>Cifrado<span style="color: #339933;">+</span><span style="color: #00007f;">ebx</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span><span style="color: #00007f;">al</span>
<span style="color: #00007f; font-weight: bold;">inc</span> <span style="color: #00007f;">ebx</span>
<span style="color: #00007f; font-weight: bold;">cmp</span> <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span> <span style="color: #009900; font-weight: bold;">&#91;</span>Nombre<span style="color: #339933;">+</span><span style="color: #00007f;">ebx</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">0</span>
<span style="color: #00007f; font-weight: bold;">je</span> sale
<span style="color: #00007f; font-weight: bold;">jmp</span> bucle
sale<span style="color: #339933;">:</span>
<span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span><span style="color: #009900; font-weight: bold;">&#91;</span>Cifrado<span style="color: #339933;">+</span><span style="color: #00007f;">EBX</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">0</span>
<span style="color: #000000; font-weight: bold;">Invoke</span> SetDlgItemText<span style="color: #339933;">,</span>hWin<span style="color: #339933;">,</span>EditCifrado<span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">addr</span> Cifrado
<span style="color: #00007f; font-weight: bold;">jmp</span> salida
<span style="color: #000000; font-weight: bold;">error</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">invoke</span> SetDlgItemText<span style="color: #339933;">,</span>hWin<span style="color: #339933;">,</span>EditCifrado<span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">addr</span> msgerror
<span style="color: #00007f; font-weight: bold;">jmp</span> salida
errorclave<span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">invoke</span> SetDlgItemText<span style="color: #339933;">,</span>hWin<span style="color: #339933;">,</span>EditCifrado<span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">addr</span> msgerrorclave
salida<span style="color: #339933;">:</span>
fin</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.daw-labs.com/cifrado-cesar-en-asm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

