Encrypting a Text File?
Posted: Sat Aug 26, 2006 4:58 am
When you save a QBASIC Program to a text file and store variables in it, is there anyway to encrypt the numbers so people using the program can't alter the variables?
Discuss QBasic, Freebasic, QB64 and more
http://www.petesqbsite.com/phpBB3/
Code: Select all
data$ = "test"
OPEN "file.dat" FOR BINARY AS #1
PUT #1, , data$
CLOSE
Code: Select all
DIM getd AS STRING * 10
OPEN "file.dat" FOR BINARY AS #1
GET #1, , getd
PRINT getd
CLOSE
I think you guys are missing DWolf's point. His concern is that the user of the program can load the source file into QBasic and using the editor can change variables before running the program.DWolf wrote:When you save a QBASIC Program to a text file and store variables in it, is there anyway to encrypt the numbers so people using the program can't alter the variables?