15 messages in com.googlegroups.django-usersRe: ordinal not in range(128) + ezPyC...
FromSent OnAttachments
elementalMay 13, 2007 4:14 am 
Malcolm TredinnickMay 13, 2007 4:32 am 
elementalMay 13, 2007 5:07 am 
Benjamin SlavinMay 13, 2007 10:55 am 
elementalMay 14, 2007 12:17 am 
elementalMay 14, 2007 1:59 am 
Malcolm TredinnickMay 14, 2007 2:10 am 
elementalMay 14, 2007 2:40 am 
elementalMay 14, 2007 5:01 am 
Benjamin SlavinMay 14, 2007 6:27 am 
Forest BondMay 14, 2007 7:02 am 
Benjamin SlavinMay 14, 2007 7:21 am 
Forest BondMay 14, 2007 8:06 am 
elementalMay 14, 2007 6:33 pm 
Forest BondMay 14, 2007 6:54 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: ordinal not in range(128) + ezPyCryptoActions...
From:Benjamin Slavin (benj@gmail.com)
Date:May 14, 2007 6:27:23 am
List:com.googlegroups.django-users

Hi elemental,

One thing I noticed is that you're doing two base64 encodings (thus the need to decode twice).

You have: raw = base64.b64encode(passport) encPassport = k.encString(raw) self.passport = base64.b64encode(encPassport)

I'm not familiar with ezPyCrypto, but you might try: encPassport = k.encString(passport) self.passport = base64.b64encode(encPassport)

Then the decryption would be: decrypted_passport = k.decString(self.passport) self.passport = base64.b64decode(decrypted_passport)

Anyway, glad to hear it's working.

- Ben