Question

Rob Schmersel <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
Hi,

I'm trying to use DES3 in the pycrypto-1.9a4 package (I know that a
1.9a6 package is available, but I'm working on windows and have not
succeeded to build a package as I have none of the required
c-compilers).
And I have the follwoing problem:
When encrypting and decrypting a message, the first 8 bytes turn into
gibberish.
  >>> from Crypto.Cipher import DES3
  >>> o=DES3.new('0011223344556677',DES3.MODE_CBC,'00000000')
  >>> t='Stick em up! This is a hold up'
  >>> c=o.encrypt(t+' '*(DES3.block_size-len(t)%DES3.block_size))
  >>> o.decrypt(c)
  >>> '\x7f\xdd\xe5\xfa"\xac\x13Z up! This is a hold up  '

Anybody out there who can help me??

/Rob
--
/----------------------------------------------------------\
| Rob Schmersel                                            |
| System Architect                                         |
|                                                          |
| Enea data                                                |
| Nytorpsvägen 5B            | Tel: +46(0)8-50714314       |
| Box 232                    | Mob: +46(0)709-714314       |
| SE-183 23 Täby, Sweden     | Fax: +46(0)8-50714040       |
\----------------------------------------------------------/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.