That makes it unreadable, but is not as secure as an encrytion program. With Windows ANY file is editable or removable.
ASCII encrytion is fairly simple. Once a file is made, you open it again to change the characters. Then use LINE INPUT to encrypt each file line. File #1 is data file to encrypt, #2 is a new temp file encrypted:
OPEN datafile$ FOR INPUT AS #1
OPEN tempfile$ FOR OUTPUT AS #2
DO UNTIL EOF(1)
newline$ = ""
LINE INPUT #1, line$
FOR i = 1 TO LEN(line$)
temp$ = MID$(line$, i, 1)
code = ASC(temp$)
newline$ = newline$ + CHR$(code + 130) ' add any number up to 130
PRINT #2, newline$
SHELL "Copy " + tempfile$ + " " + datafile$
To decrypt, just reverse the process by subtracting 130 or whatever number you choose.
I've used this technique for games. It's usually enough to confuse people.
|Response Title||Author and Date|
|If you use that, just be sure you don't have a CHR$(26) in your data...||on Jan 17|
|I normally only change letter\number codes from 48 up. I leave lowers alone.||on Jan 17|