<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>String encryption/Decryption</title>
		<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption</link>
		<description>Posts in the discussion thread &quot;String encryption/Decryption&quot; - Encrypting/decrypting using a random number</description>
				<copyright></copyright>
		<lastBuildDate>Sat, 14 Mar 2026 20:22:31 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1560766</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1560766</link>
				<description></description>
				<pubDate>Mon, 10 Sep 2012 01:18:40 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>I can't find my Ti-computer cord, could you just post the hex here for me to copy? Or is it already somewhere and I just missed it?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1560356</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1560356</link>
				<description></description>
				<pubDate>Sun, 09 Sep 2012 14:35:54 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Thanks, I'll be sure to look into that!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1560353</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1560353</link>
				<description></description>
				<pubDate>Sun, 09 Sep 2012 14:34:59 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>I'll take a look into it, thanks!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559958</guid>
				<title>String encryption/Decryption</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559958</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 22:41:46 +0000</pubDate>
				<wikidot:authorName>Xeda Elnara</wikidot:authorName>				<wikidot:authorUserId>595803</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You could also try to write a compression/decompression algorithm to add another level of complexity. For example, you could compress the data, then scramble it accordingly. Then, even if the user could descramble it, it would still be a mess. I came up with a pretty good algorithm (it usually achieved about 40% compression, but never more than 50%), but in BASIC, it would be reallly slow. My first implementation was with Celtic 3 doing most of the work and that took about 10 minutes to compress a 1000 byte string. In assembly it is a fraction of a second, though.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559798</guid>
				<title>Re: String encryption/Decryption</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559798</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 17:22:15 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Just remembered - there was a user that used to be on this forum named calccrypto and (s)he was involved in a lot of encryption discussions. I don't know where they went, but here's their wikidot page:<br /> <a href="http://calccrypto.wikidot.com/">http://calccrypto.wikidot.com/</a><br /> Check it out if you're interested!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559695</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559695</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 14:48:17 +0000</pubDate>
				<wikidot:authorName>Pandoras Fox</wikidot:authorName>				<wikidot:authorUserId>1357066</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Oh, I see what it does now. Yeah, something like that would probably work; great idea! I'll probably add that in on Monday.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559692</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559692</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 14:46:59 +0000</pubDate>
				<wikidot:authorName>Pandoras Fox</wikidot:authorName>				<wikidot:authorUserId>1357066</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Sounds like it would work; only thing I can thing of would be how long it would take to scramble the string.<br /> However, with there being no easy way to input more than half the ASCII characters, I don't really see much of a need for most of them being in the reference string.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559366</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559366</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 01:56:58 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Xeda's made a really cool program called <a href="http://www.ticalc.org/archives/files/fileinfo/425/42505.html">Xtra2</a> for that! There are 246 ASCII characters available on-calc. (I don't know why it's 246 and not 256&#8230;)<br /> The program has other uses, most importantly Xtra variables, but for your purposes, it can do exactly what is needed:<br /> Store all the special symbols to a string.</p> <p>So, in thinking of algorithms:<br /> 1: Use Xtra to make a string of all ASCII characters<br /> 2: Ask for a number password; store to rand<br /> 2: Scramble the string using rand<br /> 3: Use <a href="http://tibasicdev.wikidot.com/string-to-list">string-to-list</a> routine<br /> 4: Tell user to use same number password to decrypt</p> <p>And to decrypt:<br /> 1: Use Xtra to make a string of all ASCII characters<br /> 2: Ask for the password; store to rand<br /> 2: Scramble the string using rand<br /> 3: Use <a href="http://tibasicdev.wikidot.com/list-to-string">list-to-string</a> routine<br /> 4: Decrypted!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559363</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559363</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 01:44:27 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It checks the length of the reference string, not the message length.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559349</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559349</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 01:12:30 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Or just have it store a ? into the encrypted string in its place; it's their fault for not following the guidelines.<br /> (Note: I've updated both programs with progress percentages, as well as an 'allowed characters' guideline on the input screen (It says 'Allowed characters are A-Z, a-z, 0-9, , and .) so it shouldn't be a problem now)</p> <p>I need to ask burr if he can attribute all these posts to my actual account that's never used.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559345</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559345</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 01:04:56 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>I was think along the lines of getting a string of all not supported characters and just using an instring after they input their string (as well as possibly outputting the invalid character).</p> <p>I have a few more ideas; however they haven't taken a very definite form yet so I'll research them this weekend or later.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559335</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559335</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 00:35:07 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Wouldn't that just check the message length and not the character values?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559333</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559333</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 00:34:05 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot; at the moment. I might include a lowercase-enabling asm program, too.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559319</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559319</link>
				<description></description>
				<pubDate>Sat, 08 Sep 2012 00:02:01 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>by the way, what is the set of characters we're dealing with?<br /> i have mirageOS data on my calc so i can do lowercase letters.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559318</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559318</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 23:59:30 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>oh, i forgot that there was a starting point</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559314</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559314</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 23:51:20 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>No - repeats of the same character would be technically pointless and space-wasting, but it wouldn't cause an error with sub().</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559307</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559307</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 23:32:19 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>dont forget about repeats of the same character</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1559291</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1559291</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 23:20:37 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The best way to ensure all characters are valid: (to the best of my knowledge)</p> <div class="code"> <pre><code>:If length(Str7)&gt;max(L₁ // where the reference string is in Str7 and the encrypted info is in L₁ :Then :ClrHome :Disp &quot;Invalid reference code!&quot; :Stop :End</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558903</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558903</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 17:20:51 +0000</pubDate>
				<wikidot:authorName>bsch2734</wikidot:authorName>				<wikidot:authorUserId>886560</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Dang that's mean!<br /> sorry</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558726</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558726</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 15:04:47 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>So far, I've worked out all the kinks (that I can find); I'm planning on writing a check into the encryptor and decryptor to ensure that all the characters are valid.<br /> Other than that, I've added some nice text telling you what it's doing so that whenever it changes steps, they'll know that it is still doing stuff.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558667</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558667</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 13:29:55 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Sidenote to a sidenote: Not all &quot;ABCD&#8230;6789&quot;'s, you need the last one in DECR and either the last or second to last in ENCR. I think.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558655</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558655</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 13:10:20 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Sidenote: With this, you would use Str7 instead of the ABCD&#8230;.6789, and you would either reference this code through another program at the beginning of each program or just copy it in over the key generation.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558651</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558651</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 13:05:49 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Also, I was using plumcrash until it got blocked.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558649</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558649</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 13:04:36 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Double correction: for(Z,3,65</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558646</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558646</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 13:02:00 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>scratch that last line of code, it should be<br /> for(Z,2,64<br /> str0+sub(str7,Z,1) -&gt; Str0<br /> End</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558643</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558643</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 12:59:52 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Something like this?</p> <p>Delvar A<br /> Repeat A&gt;0 and A&lt;65<br /> Input &quot;Seed? &quot;, A<br /> End<br /> A -&gt; rand<br /> rand(64 -&gt; L1<br /> seq(X,X,1,64 -&gt; L2<br /> SortA(L1,L2<br /> &quot;: -&gt; Str7<br /> For(Z,1,64<br /> Str7 + sub(&quot;ABCD&#8230;.6789&quot;,L2(Z),1 -&gt; Str7<br /> End</p> <p>If you want, add a<br /> sub(str7,2,1 -&gt; str0<br /> seq(str0 + sub(str7,Z,1), Z, 2,64</p> <p>to truncate the &quot;:&quot; out of str7</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558638</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558638</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 12:55:38 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>couple things:<br /> It's filtered as 'uncategorized'<br /> also, if the browser gets a security warning, then the site gets added to our filter's blacklist, unfortunately.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558634</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558634</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 12:53:10 +0000</pubDate>
				<wikidot:authorName>bsch2734</wikidot:authorName>				<wikidot:authorUserId>886560</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>For Boba.Foxx:</p> <p>Whatever page is blocked for you, use <a href="https://grapesnake.com">https://grapesnake.com</a> (its an http proxy) to get around the block. Your browser will probably tell the site's security has problems, and that it does not recomend using the site, but just ignore the warnings. Also, this method is probably against your school's &quot;accaptable use policy&quot; or something along those lines, so be ware.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558602</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558602</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 12:07:22 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>God, I wish I could log in at school; it would make my life easier and it would let me have karma; I'm going to try copying the wikidot cookies from my other computer. I just have to hope that I can find the place to put it in a mac's filesystem.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558599</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558599</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 12:05:07 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Sounds good; I'm thinking along the lines of storing the initial number into rand and doing rand(number of characters in ref string) and using the card shuffling method (http:/ /tibasicdev.wikidot. com/randintnorep) to scramble the string.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558286</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558286</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 02:59:25 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>good idea,<br /> may be several algorithms so that 2 reference strings don't get one number, and it will assure that they have to be in the correct algorithm. so pretty much 3 or 4 numbers in a certain order that will all get the same reference code.<br /> i'll try to work on such a translation.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558279</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558279</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 02:52:57 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I see what you mean, but I don't like the idea of keeping the password inside the list&#8230;<br /> Perhaps someone can produce an algorithm that creates a reference string from a single number? And vice versa?<br /> Then the reference string could become a number to memorize and, if the algorithm is good, it'll be very hard to decipher the correlation between the number and a reference string.<br /> I'll start thinking of something during the weekend&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558269</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558269</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 02:39:04 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>a two in one protection system&#8230;<br /> a LOOOOONG password<br /> a encryption code&#8230;<br /> good idea&#8230;<br /> but having the reference code be the password, if someone messes one letter for another, then thats 2 letters in the message they can easily change mentally to fit. i think keeping reference string in a list is better because the program can compare the given reference code to the original and prevents the translation</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558264</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558264</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 02:28:38 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Or just delete the reference string and have the user input it again as a password!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558263</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558263</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 02:24:22 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>you might want to also hide the reference string by applying the reference string to the ABCDEFGHIJKLMNOPQRSTUVWXYZ method and hiding the outcome in another list. the hacker won't know which list is the reference or message and applying either one to the ABCD&#8230; method will be result in an confusing outcome because the reference will be a mix of characters.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558190</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558190</link>
				<description></description>
				<pubDate>Fri, 07 Sep 2012 00:29:37 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hmm, could work. The only problem I can think of would be them not putting in the exact same string and getting an error (I generally try to leave my code with as few possibilites for errors as possible) or i could write a routine that sorts their string so that as long as they have all the same characters in their string, it will work.<br /> It's worth a shot,; I'll see what I can do.<br /> I could also ask the user for a number to use in the offset, which makes it a 64-character encryption routine, and the key isn't stored in the string.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1558125</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1558125</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 23:01:13 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Here's an idea:<br /> Convert each character into a number with the <a href="http://tibasicdev.wikidot.com/string-to-list">string-to-list</a> routine as a list. But as a twist, don't use ABCDEFGHIJKLMNOPQRSTUVWXYZ as the reference. Have the user input a string to use as a reference - and they can put them in any order they wish.<br /> To decrypt the list back into a string that makes sense, the user enters in the string they used before and you use the <a href="http://tibasicdev.wikidot.com/list-to-string">list-to-string</a> routine (with their inputted string, not ABCDEFGHIJKLMNOPQRSTUVWXYZ, of course)!<br /> What do you think?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1557794</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1557794</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 16:02:57 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>At some point in the near future (probably during calculus), I'm going to rewrite the encryption so it'll be harder to crack (I.E. the encryption key won't be the first character), as well as add support for more characters/tokens.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1557787</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1557787</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 15:50:54 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>PRGM θDECR (Optimized for speed)</p> <p>sub(Str0,1,1 -&gt; Str9<br /> instring(&quot;ABCD…..6789&quot;,Str9 -&gt; R<br /> Delvar L1<br /> Setupeditor L1<br /> For(θ,2,Length(Str1<br /> Delvar W<br /> Instring(&quot;ABCD…..6789&quot;,Str1-&gt;L1<br /> End<br /> L1-R -&gt; L1<br /> For(θ,1,dim(L1<br /> If L1(θ )&lt;1:64+L1(θ) -&gt; L1(θ //Fixes negative values<br /> End<br /> &quot;: -&gt; Str1<br /> For(θ,1,dim(L1<br /> Str1 + sub(&quot;ABCD…..6789&quot;,L1(θ ),1 -&gt; Str1<br /> End</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1557781</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1557781</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 15:38:26 +0000</pubDate>
				<wikidot:authorName>Boba Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Also, the<br /> Y+A -&gt; Y<br /> was the initial encryption offset; that's why I has the Randint(1,64) -&gt;A instead of being an argument in the sub.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1557638</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1557638</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 12:03:59 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Jeez, I forgot about the instring command&#8230;Now I feel stupid :p</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1557054</guid>
				<title>Re: String encryption/Decryption</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1557054</link>
				<description></description>
				<pubDate>Wed, 05 Sep 2012 21:53:44 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This code is an optimization of your code in both size and speed :)</p> <div class="code"> <pre><code>PRGM θENCR :Input &quot;&quot;, Str1 :sub(&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot;,RandInt(1,64),1 -&gt; Str0 :For(θ,1,length(Str1 :inString(&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot;,sub(Str1,θ,1 -&gt; Y :Y+A-&gt;Y :Str0+sub(&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot;,Y,1 -&gt; Str0 :End</code></pre></div> <p>All I did was replace your method of converting the character into a number with the <a href="http://tibasicdev.wikidot.com/instring">inString</a> command.<br /> What was:<br /> Y+A-&gt;Y<br /> for?</p> <p>BTW this is for your first program. I'll look at your 2nd program later.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1556795</guid>
				<title>(no title)</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1556795</link>
				<description></description>
				<pubDate>Wed, 05 Sep 2012 16:26:13 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Please forgive any typos in the above post or in this one; I can't edit posts as a guess ;-;<br /> All &quot;ABCD&#8230;..6789&quot; is just a shortened &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot;.<br /> PRGM θDECR</p> <p>sub(Str0,1,1 -&gt; Str9<br /> &quot;. -&gt; Str1<br /> Delvar θ<br /> While Str1 ≠ Str0<br /> θ+1 -&gt; θ<br /> sub(&quot;ABCD&#8230;..6789&quot;,θ,1 -&gt; Str1<br /> End<br /> Delvar Str1<br /> θ -&gt; R<br /> Delvar L1<br /> Setupeditor L1<br /> For(θ,2,Length(Str1<br /> Delvar W<br /> For(Z,1,64<br /> If sub(&quot;ABCD&#8230;..6789&quot;,Z,1)=Str1:Z -&gt;W<br /> If W≠0:64 -&gt; Z<br /> End<br /> W -&gt; L1(θ-1<br /> End<br /> L1-R -&gt; L1<br /> For(θ,1,dim(L1<br /> If L1(θ )&lt;1:64+L1(θ) -&gt; L1(θ //Fixes negative values<br /> End<br /> &quot;: -&gt; Str1<br /> For(θ,1,dim(L1<br /> Str1 + sub(&quot;ABCD&#8230;..6789&quot;,L1(θ ),1 -&gt; Str1<br /> End</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-559968#post-1556788</guid>
				<title>String encryption/Decryption</title>
				<link>http://tibasicdev.wikidot.com/forum/t-559968/string-encryption-decryption#post-1556788</link>
				<description></description>
				<pubDate>Wed, 05 Sep 2012 16:17:19 +0000</pubDate>
				<wikidot:authorName>Boba.Foxx</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Basically just a string encrypting. I'll post the decrypting program in a bit, when I get some time. The encrypting and decrypting are each kinda slow, so I was just wondering if anyone could help me with it. I'm looking for speed optimization; space optimization isn't that important right now. Here goes:<br /> PRGM θENCR<br /> Input &quot;&quot;, Str1<br /> Randint(1,64<br /> sub(&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot;,ans,1 -&gt;Str0<br /> For(θ,1,length(Str1<br /> sub(Str1, θ,1 -&gt;Str2<br /> Delvar Y<br /> For( Z, 1, 64<br /> If sub(&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot;,Z,1)=str2:Z -&gt; Y<br /> If Y≠0:64 -&gt;Z<br /> End<br /> Y+A-&gt;Y<br /> str0 + sub(&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz .0123456789&quot;,Y,1 -&gt; Str0<br /> End</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>