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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---