Re: another question?

From: Benjamin Goldberg (goldbb2@earthlink.net)
Date: 02/20/03


From: Benjamin Goldberg <goldbb2@earthlink.net>
Date: Thu, 20 Feb 2003 01:58:20 -0500

Cai Wenliang wrote:
>
> I have another question , too.
>
> I need encrypt my configure file in my system . that means only my
> program can read and write the file, others can't. but I prefer not to
> a static key . how can I do ?

Not with crypto.

If your operating system is unix, you could use chmod on the file to
make that file readable and writable only to your own user-id. Then,
use chmod on your executable program to make it setuid.

-- 
$;=qq qJ,krleahciPhueerarsintoitq;sub __{0 &&
my$__;s ee substr$;,$,&&++$__%$,--,1,qq;;;ee;
$__>2&&&__}$,=22+$;=~y yiy y;__ while$;;print