defrex / django-encrypted-fields

This is a collection of Django Model Field classes that are encrypted using Keyczar.
MIT License
193 stars 60 forks source link

Bug with unicode #4

Closed whncode closed 10 years ago

whncode commented 10 years ago

There is bug in keychar, when you try decrypt unicode (you get empty string). I'm bypased it by adding:

value = value.encode('unicode_escape') in get_prep_value. And in to python: value.decode('unicode_escape').

defrex commented 10 years ago

I just pushed a fix for this. Let me know if you have any issues with it.

whncode commented 10 years ago

Thanks, works perfect!