<?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>xor | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/xor/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Sun, 21 Mar 2021 19:26:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>xor | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>How to encrypt text using Xor</title>
		<link>https://learncgames.com/how-to-encrypt-text-using-xor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-encrypt-text-using-xor</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Tue, 23 Mar 2021 00:00:52 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xor]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2940</guid>

					<description><![CDATA[<p>This is not meant to offer protection, but if you want to say hide text by disguising it, then using Xor for reversible encryption will do the trick. It relies on the principle that if you Xor A and B to get C then you can Xor C and A to get B or Xor [&#8230;]</p>
The post <a href="https://learncgames.com/how-to-encrypt-text-using-xor/">How to encrypt text using Xor</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:85,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/geralt-9301\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=63530&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260128125116\/https:\/\/pixabay.com\/users\/geralt-9301\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:47:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 15:44:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 08:03:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 12:26:57&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-03 00:05:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-06 06:25:59&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-09 16:52:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-14 23:28:56&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-18 18:27:12&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-26 23:25:19&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 22:10:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 10:21:34&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 22:02:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-13 23:19:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 09:37:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-21 08:01:16&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 08:01:16&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:86,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=63530&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:47:47&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 15:44:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 08:03:38&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 12:26:57&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-03 00:05:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-06 06:25:59&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-09 16:52:48&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-14 23:28:57&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-18 18:27:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-25 00:58:14&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-29 11:23:43&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-01 22:01:40&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-06 03:59:21&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-13 23:19:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 09:37:40&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-21 08:01:16&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 08:01:16&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_2935" aria-describedby="caption-attachment-2935" style="width: 300px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-2935" src="https://learncgames.com/wp-content/uploads/2021/03/binary-63530_640-300x300.jpg" alt="Binary" width="300" height="300" srcset="https://learncgames.com/wp-content/uploads/2021/03/binary-63530_640-300x300.jpg 300w, https://learncgames.com/wp-content/uploads/2021/03/binary-63530_640-150x150.jpg 150w, https://learncgames.com/wp-content/uploads/2021/03/binary-63530_640-250x250.jpg 250w, https://learncgames.com/wp-content/uploads/2021/03/binary-63530_640.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-2935" class="wp-caption-text">Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=63530">Gerd Altmann</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=63530">Pixabay</a></figcaption></figure>
<p>This is not meant to offer protection, but if you want to say hide text by disguising it, then using Xor for reversible encryption will do the trick. It relies on the principle that if you Xor A and B to get C then you can Xor C and A to get B or Xor C and B to get A.</p>
<p>I wrote a short program and tutorials to demonstrate taking a single bit of text then disguising it. To make it more challenging, I only used Xor values from the range 0-255 that had four or more bits with 1 in it, for example 15 which is 00001111 in binary.</p>
<p>You can find the tutorial <a title="Link to tutorial on How to do encryption using xor in C" href="https://learncgames.com/how-to-do-xor-encryption-in-c/" target="_blank" rel="nofollow noopener">How to do Xor encryption in C.</a> Please note this is only a very light weight encryption method so don&#8217;t use it for anything too important!</p>The post <a href="https://learncgames.com/how-to-encrypt-text-using-xor/">How to encrypt text using Xor</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2940</post-id>	</item>
	</channel>
</rss>
