Tony Czeh
unread,Nov 12, 2009, 11:40:33 AM11/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I'm running into a bit of a problem with Django's models. I have a
VARCHAR field that needs to be stored with the content AES_ENCRYPT
then HEXed (done on the MySQL server).
What I'd like to have happen is for the Django model to generate
"AES_DECRYPT(UNHEX(field), salt)" when the field is loded by the model
and "HEX(AES_ENCRYPT(field, salt))" when the field is saved by the
model.
Is there a way to make this happen, so far I'm not turning up
anything.
Cheers,
Tony Czeh