I wrote these 2 small routines (they are generic, but they work) to encrypt any (ascii file) (that you could open in a word editor)
Func Encrypt()
LOCAL Enc_File,Enc_Key
CLEAR
Enc_File = GETFILE("PRG"

&& in your case prgs!
IF EMPTY(Enc_File) OR !FILE(Enc_File)
MESSAGEBOX("Sorry file does not exist or You did not select a file",16,"Invalid"

RETURN
ENDIF
Enc_key = VAL(INPUTBOX("Enter an Encryption Key Value","Value","40"

)
IF EMPTY(Enc_Key)
Enc_Key = 32 && by default
ENDIF
nHandle = fopen(Enc_File,2)
nLength = fseek(nHandle,0,2)
=fseek(nHandle,0)
cString = fread(nHandle,nLength)
w = ""
WAIT WINDOW "Encrypting File, please wait... " NOWAIT
for x = 1 to len(cString)
* c = ltrim(str(x))
HeadIn = ltrim(str(asc(substr(cString,x,1))))
HeadOut = chr(val(HeadIn) + Enc_key)
w =w+HeadOut
next x
fseek(nHandle,0,0)
MESSAGEBOX(iif(fwrite(nHandle,w,nlength) = 0,ferror(),"File Encrypted Successfully!"

)
fclose(nHandle)
***********
Function Decrypt()
LOCAL Enc_File,Enc_Key
CLEAR
Enc_File = GETFILE("PRG"

IF EMPTY(Enc_File) OR !FILE(Enc_File)
MESSAGEBOX("Sorry file does not exist or You did not select a file",16,"Invalid"

RETURN
ENDIF
Enc_key = VAL(INPUTBOX("Enter an Encryption Key Value","Value","40"

)
IF EMPTY(Enc_Key)
Enc_Key = 32 && by default
ENDIF
nHandle = fopen(Enc_File,2)
nLength = fseek(nHandle,0,2)
=fseek(nHandle,0)
cString = fread(nHandle,nLength)
WAIT WINDOW "Decrypting File, please wait... " NOWAIT
w = ""
for x = 1 to len(cString)
c = ltrim(str(x))
HeadIn = ltrim(str(asc(substr(cString,x,1))))
HeadOut = chr(val(HeadIn) -Enc_Key)
w =w+HeadOut
next x
=fseek(nHandle,0)
if fwrite(nHandle,w,nlength) = 0
MESSAGEBOX("Error has occured: "+ ferror())
ELSE
MESSAGEBOX("File has been decrypted with Key Code: " + LTRIM(STR(Enc_Key)))
ENDIF
fclose(nHandle)
I just tried it on 2 prgs, and 5 txt files... And it worked!!
Let me know what you think!! Plz, I am curious!!! Please let me know if this helped you
Tekno
Wireless Toyz
Ypsilanti, Michigan