lightweight encryption of text file

Nobody nobody at nowhere.com
Sun Jan 10 17:20:45 CET 2010


On Sun, 10 Jan 2010 09:59:31 +0100, Daniel Fetchinson wrote:

> Thanks, this looks very simple too, but where is the decryption code?
> Wikipedia seems to suggest that encryption and decryption are both the
> same but running crypt on the output of crypt doesn't give back the
> original string. So probably I'm misunderstanding something.

The encryption is stateful (it wouldn't be very good if it wasn't), so you
need to create and initialise a new arcfour instance for decryption; you
can't re-use the existing instance.




More information about the Python-list mailing list