Talk:PTC Open-Source Project/@comment-14600979-20131031031936/@comment-9531161-20131101042740

Ohhh, of course it would work! In fact, that's quite easy. It would take a lot of SUBSTR and stuff, but other than that, it's not bad. The basic idea is to use MID$ to get a single character, then do ASC to get the character value (we'll call it C). Then, you'd do C=(C+13)%256 to get the "encoded" character (this works for literally anything you can put in a string). Finally, you write it back using SUBSTR. Repeat for each character! To decode, you would just do the exact same thing, but use C-13 instead of C+13, and you'd need to check to make sure it didn't go below 0.