<?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>ROT13 Archives - Onestring Lab</title>
	<atom:link href="https://onestringlab.com/tag/rot13/feed/" rel="self" type="application/rss+xml" />
	<link>https://onestringlab.com/tag/rot13/</link>
	<description>Kode Kreativitas Kopi</description>
	<lastBuildDate>Mon, 04 May 2026 08:37:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://onestringlab.com/wp-content/uploads/2021/10/cropped-osl-high-res-e1455499003866-32x32.jpg</url>
	<title>ROT13 Archives - Onestring Lab</title>
	<link>https://onestringlab.com/tag/rot13/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Belajar Bahasa C &#8211; ROT13</title>
		<link>https://onestringlab.com/rot13/</link>
		
		<dc:creator><![CDATA[Rajo Intan]]></dc:creator>
		<pubDate>Mon, 12 Dec 2022 01:36:00 +0000</pubDate>
				<category><![CDATA[Codewars]]></category>
		<category><![CDATA[C Language]]></category>
		<category><![CDATA[ROT13]]></category>
		<guid isPermaLink="false">https://onestringlab.com/?p=862</guid>

					<description><![CDATA[<p>How can you tell an extrovert from an introvert at NSA? Va gur ryringbef, gur rkgebireg ybbxf ng gur BGURE thl&#8217;f fubrf. I found this &#8230; </p>
<p>The post <a href="https://onestringlab.com/rot13/">Belajar Bahasa C &#8211; ROT13</a> appeared first on <a href="https://onestringlab.com">Onestring Lab</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>How can you tell an extrovert from an introvert at NSA? Va gur ryringbef, gur rkgebireg ybbxf ng gur BGURE thl&#8217;f fubrf.</p>



<p>I found this joke on USENET, but the punchline is scrambled. Maybe you can decipher it? According to Wikipedia, ROT13 (<a href="http://en.wikipedia.org/wiki/ROT13" target="_blank" rel="noreferrer noopener">http://en.wikipedia.org/wiki/ROT13</a>) is frequently used to obfuscate jokes on USENET.</p>



<p>Hint: For this task you&#8217;re only supposed to substitute characters. Not spaces, punctuation, numbers etc.</p>



<h2 class="wp-block-heading">Test examples:</h2>



<pre class="wp-block-code"><code lang="csharp" class="language-csharp">"EBG13 rknzcyr." --&gt;
 "ROT13 example."

"This is my first ROT13 excercise!" --&gt;
 "Guvf vf zl svefg EBG13 rkprepvfr!"</code></pre>



<h2 class="wp-block-heading">Solution:</h2>



<pre title="ROT13" class="wp-block-code"><code lang="csharp" class="language-csharp line-numbers">#include &lt;string.h&gt;

char *rot13(char *str_out, const char *str_in)
{
  // write to str_out and return it
  *str_out = '\0';

  char b;
  unsigned long i;
  for (i = 0; i &lt; strlen(str_in); i++)
  {
    b = str_in[i];
    if ((b &gt;= 'A' &amp;&amp; b &lt;= 'M') || (b &gt;= 'a' &amp;&amp; b &lt;= 'm'))
      b += 13;
    else if ((b &gt;= 'N' &amp;&amp; b &lt;= 'Z') || (b &gt;= 'n' &amp;&amp; b &lt;= 'z'))
      b -= 13;
    strncat(str_out, &amp;b, 1);
  }
  return str_out;
}</code></pre>
<p>The post <a href="https://onestringlab.com/rot13/">Belajar Bahasa C &#8211; ROT13</a> appeared first on <a href="https://onestringlab.com">Onestring Lab</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
