On Apr 1, 2005 6:45 AM, Kent Johnson <[EMAIL PROTECTED]> 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
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
Mark Thomas wrote:
On Thu, 31 Mar 2005 09:14:03 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote:
> If you post your code and the complete error message including the stack
> trace we may be able to help.
>
> Kent
Thanks Ken
I'm getting closer to making this work using the XOR cipher. Here's
what I'm doing.
from
Mark Thomas wrote:
Does anyone have some examples on the use of A.M. Kuchling's Python
Cryptography Toolkit? I've tried his examples but get "AttributeError"
and "TypeError". What I'm trying to do is encrypt/decrypt a file. I'm
using Python 2.3 on xp pro.
If you post your code and the complete erro
Does anyone have some examples on the use of A.M. Kuchling's Python
Cryptography Toolkit? I've tried his examples but get "AttributeError"
and "TypeError". What I'm trying to do is encrypt/decrypt a file. I'm
using Python 2.3 on xp pro.
Thanks
--
_
( ) Mark Thomas ASCII ribbon campaign
X ww