georgemarshall / django-cryptography

Easily encrypt data in Django
https://django-cryptography.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
371 stars 70 forks source link

How to get the encrypted fields in django admin? #15

Closed ba11b0y closed 5 years ago

ba11b0y commented 5 years ago

I have successfully encrypted data and I have confirmed it after checking the tables. But when I view the data in django admin interface, it comes out as plain text most probably because of the bi-directional nature of the encrypt wrapper. Is there any way to override this nature and display encrypted data in the django admin.

thismatters commented 5 years ago

Wouldn't a better solution be to simply not display the sensitive information in the django admin?

What would be the point of displaying the data (still encrypted) in admin?

ba11b0y commented 5 years ago

Well, I had a special case here. But yeah, it would be better not to display it. Closing this.