| [reply] [d/l] |
You can use pack and unpack to transform it into something unintelligible from an "average human" standpoint. With those tools, you could convert it to 0's and 1's if you wanted, or uuencoding, though most likely you would just pack it from text to 'binary' format, and unpack it later. For that matter, you could even ROT-13 it with tr/A-Za-z/N-ZA-Mn-za-m/;
But that's not the ultimate in security. More like, simple obscurity. Don't put credit card numbers and missile launch codes into the file.
Dave
"If I had my life to live over again, I'd be a plumber." -- Albert Einstein
| [reply] [d/l] |
| [reply] |
Why on earth do you have a file - ANY FILE - where it can be seen? Move the file out of the document root, or any document area where it can be seen. Change the permissions so that only the script can read and write it. This is one of the cardinal rules of web site building - if there is the most remote possibilitty that someone can see or modify a file they inevitably will, and far sooner than you anticipate.
jdtoronto
| [reply] |