How to obscure a password

Batista, Facundo FBatista at uniFON.com.ar
Thu Feb 26 11:49:01 EST 2004


Gerrit wrote:

>> If you can restore it, anyone can. So there is theoretically no secure
wa=
>> y.
>> You can scramble it by applying some encodings to it serially:
>> 
>> s =3D str(int("Hello,
world!".encode("rot13").encode("zlib").encode("uu")=
>> .encode("rot13").encode("hex"), 16))
>>
hex(int(s))[2:-1].decode('hex').encode('rot13').decode("uu").decode("zlib=
>> ").decode("rot13")
>> 
>> However, it is not secure, especially not now that its on usenet ;-)


Sure, but it'll stop eventual snooping.

I'll scramble somehow with encode.

Thanks!

.	Facundo




More information about the Python-list mailing list