I recently needed to get some simple XOR-type encryption. At first, I was led to TI2803
by Borland. However, that tech note has some problems with the strings having unprintable characters in it (specifically, #0 is troublesome when passing the string around).
I finally came across Peter Martin's solution, which solves all of my needs quite nicely.