[Tutor] Cryptography Toolkit
Mark Thomas
thomas.s.mark at gmail.com
Fri Apr 1 18:40:21 CEST 2005
On Apr 1, 2005 6:45 AM, Kent Johnson <kent37 at tds.net> wrote:
> It works if you make a new XOR object for the decryption:
>
> from Crypto.Cipher import XOR
>
> obj_xor = XOR.new("string")
> str_encrypt = "encrypt this string"
> print str_encrypt
>
> xored = obj_xor.encrypt(str_encrypt)
> print xored
>
> obj_xor = XOR.new("string")
> print obj_xor.decrypt(xored)
>
> Kent
Excellent !!
Many thanks Kent.
--
_
( ) Mark Thomas ASCII ribbon campaign
X www.theswamp.org - against HTML email
/ \
More information about the Tutor
mailing list