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

Filter on encrypted fields #29

Closed ateeqsuhail closed 7 years ago

ateeqsuhail commented 7 years ago

Filter on EncryptedCharField is not working... It is returning None in both the cases

  1. when i paste encrypted value from DB.
  2. or when i paste decrypted value.
defrex commented 7 years ago

Once the data is in the database, it's effectively noise. There is no way to query against it.

This is intentional. If you want to use filter, you'll need to store the field unencrypted.