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. -- http://mail.python.org/mailman/listinfo/python-list