Reputation: 259
I'm using Django 1.4, python 2.7. I want to encrypt data when it gets inserted into DB and decrypt it when I'm reading it from DB. I can override the Save method of each model to store encrypted data but I don't know what should I do when I want to read this data. I have to handle admin site model and my project's models. Which method should I override?
Upvotes: 1
Views: 100
Reputation: 3196
The EncryptedTextField
and EncryptedCharField
from django-extensions seem like the things you're looking for.
Upvotes: 1