georgemarshall / django-cryptography

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

Django 2.0.2 and Python 3.6.0 #13

Closed sanderbrauwers closed 4 years ago

sanderbrauwers commented 6 years ago

I did exactly as in the example,

I even tried with a default value test_encrypt = encrypt(models.CharField(max_length=300,default="test_me"))

However when I look in the database its just stored as text

ADR-007 commented 6 years ago

Also, I can't find any test that checks that the text is really encrypted.

tmanOC commented 6 years ago

I used it with sqlite and it shows up as BLOB. And definitely looks nothing like what I typed in when I view the binary data.

georgemarshall commented 4 years ago

Existing fields cannot be encrypted in place, here is a reference to a previous discussion about migrating data. https://github.com/georgemarshall/django-cryptography/issues/11#issuecomment-367238433