There's a lot of encryption tutorials online - but really, your own awkward and elaborate encryption would be tougher to crack. The problem is that if there's a technique to crack an encryption - then that encryption method should be buried.
Just consider each character as a numeric value between 0 and 255, and you know those ranges are solid - but how you affect these values is up to you. For example, your password 'bob' - you could use that to generate the real password internally, like 'bob' could end up as a string of 256 characters that is used instead. You might use the ascii values from bob to generate the string using random values - but random values are actually not very random at all
.
Like:
text 0,0,"Creating string"
text 0,20,"bob:"+makestring$("bob")
text 0,120,"bab:"+makestring$("bab")
text 0,220,"abcdefg:"+makestring$("abcdefg")
wait key
function makestring$(pass$)
makestring$=""
ppos=1
for pos=1 to len(pass$)
ascii=asc(mid$(pass$,pos))
seed=seed+ascii
if seed>12345 then dec result,12345
next pos
for pos=1 to 256
ascii=asc(mid$(pass$,ppos))
randomize ((pos*256)+ascii)
result=rnd(255)+ascii+seed
if result>255 then dec result,255
makestring$=makestring$+chr$(result)
inc ppos,1
if ppos>len(pass$) then ppos=1
next pos
endfunction makestring$
It should make a unique string from any length password, then you use that as an offset over all your data, and you can forget about anyone spotting any kind of common pattern. If you just used 'bob' it'd be easy to crack.
EDIT:Changed code for a better working example
Van-B
Muhahahahaha.