Convert to binary and convert back to strings

Ganesan Rajagopal rganesan at myrealbox.com
Wed Feb 21 23:29:22 EST 2007


>>>>> Grant Edwards <grante at visi.com> writes:

>> print base64.decodestring(open('sambleb.conf', 'r').read())

> It'll only remain obfuscated for about 30 seconds after even a
> mildly curious user looks at the file.

It depends on the requirement. If the intention is to just to
discourage someone with messing around with some config
settings, it's good enough. If the user can figure out that
it's base64 encoded and takes pains to decode, modify, encode
and save it back, then he's earned the right to mess around
;-).

Ganesan

-- 
Ganesan Rajagopal




More information about the Python-list mailing list